Plan nodes · Scans

BitmapOr

Unites bitmaps from several indexes.

Combines bitmaps, keeping what is in any of them. This is how PostgreSQL uses indexes for an OR of conditions on different columns.

Example

SELECT * FROM tracks WHERE album_id = 5 OR ms = 123456

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 · BitmapAnd · 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