Create and test hypothetical PostgreSQL indexes without overhead
Hypothetical Indexes for PostgreSQL
$ CREATE INDEX CONCURRENTLY hypo_idx ON table_name (column_name); EXPLAIN SELECT * FROM table_name WHERE column_name = 'value';$ SELECT hypopg_create_index('CREATE INDEX ON users (email, created_at)'); EXPLAIN SELECT * FROM users WHERE email = 'test@example.com';$ SELECT * FROM hypopg_create_index('CREATE INDEX ON orders (customer_id, status)'); EXPLAIN SELECT * FROM orders WHERE customer_id = 123 AND status = 'pending';$ SELECT * FROM hypopg_list_indexes();$ SELECT hypopg_drop_index(index_oid);