PostgreSQL - Indexing Strategies
Given the table
orders(order_id, customer_id, status, total_amount), which index definition best enables an index-only scan for the query:SELECT customer_id, total_amount FROM orders WHERE status = 'completed';