plan

Bitmap scan

Collects candidate tuple locations in a bitmap and visits heap pages in physical order. Lossy pages require predicate rechecks. This is not an Oracle bitmap index. PostgreSQL 17. Plan shape depends on statistics, configuration and data; example settings are laboratory aids, not production advice.

Formal Syntax & Structure

sql syntaxsql
EXPLAIN SELECT ... WHERE indexed_column = value

Working Example

Example Snippetsql
CREATE TABLE items(id integer PRIMARY KEY, category integer, price integer); INSERT INTO items VALUES (1,1,10),(2,1,20),(3,2,30); CREATE TABLE categories(id integer PRIMARY KEY, label text); INSERT INTO categories VALUES (1,'A'),(2,'B');CREATE INDEX ix_price ON items(price); SET enable_seqscan=off; SET enable_indexscan=off; SET enable_indexonlyscan=off;EXPLAIN (FORMAT JSON) SELECT id FROM items WHERE price=20;SELECT id FROM items WHERE price=20;
SQL Reference