Explains the different scan types that appear in Postgres EXPLAIN plans and when each is used. Covers sequential scans (reading entire tables row-by-row), index scans (using B-tree indexes to locate data), bitmap index scans (hybrid approach creating in-memory bitmaps), parallel scans (using multiple workers concurrently), and index-only scans (retrieving all data from the index without touching the main table). Includes practical examples showing when each scan type is optimal and how to identify them in query plans.
Table of contents
Sequential scanIndex ScanBitmap Index ScanParallel Sequential ScanParallel index scanIndex-Only ScanSummarySort: