How Postgres Chooses Which Index To Use For A Query How the Postgres planner breaks down a query into scans and how this impacts indexing choices