PostgreSQL - Indexing Strategies
You have a table
logs(id, event_type, created_at, details) and want to speed up queries filtering by event_type and selecting created_at. Which index strategy best enables index-only scans for queries like:SELECT created_at FROM logs WHERE event_type = 'error';