Plan nodes · Scans

BitmapAnd

Intersects bitmaps from several indexes.

Combines the bitmaps of two or more Bitmap Index Scans, keeping only pages and rows present in all of them, so one query can use separate indexes on two columns (WHERE a = 1 AND b = 2).

Example

SELECT * FROM tracks WHERE album_id < 300 AND ms < 70000

4 nodes

Run with EXPLAIN (ANALYZE, BUFFERS, TIMING OFF, SUMMARY OFF) on the sample database, PostgreSQL 19.0. Open it in the EXPLAIN visualizer →

Related

Seq Scan · Index Scan · Index Only Scan · Bitmap Index Scan · Bitmap Heap Scan · BitmapOr · Tid Scan · Tid Range Scan · Sample Scan · Subquery Scan · Function Scan · Table Function Scan · Values Scan · CTE Scan · WorkTable Scan · Named Tuplestore Scan · Foreign Scan · Custom Scan