BitmapHeapScan: begin scan after bitmap creation

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: 1577081e9614345534a018e788a2c0bab4da4dc5
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2024-04-06T20:58:04Z
Releases: 17.0
BitmapHeapScan: begin scan after bitmap creation

Change the order so that the table scan is initialized only after
initializing the index scan and building the bitmap.

This is mostly a cosmetic change for now, but later commits will need
to pass parameters to table_beginscan_bm() that are unavailable in
ExecInitBitmapHeapScan().

Author: Melanie Plageman
Reviewed-by: Tomas Vondra, Andres Freund, Heikki Linnakangas
Discussion: https://postgr.es/m/CAAKRu_ZwCwWFeL_H3ia26bP2e7HiKLWt0ZmGXPVwPO6uXq0vaA%40mail.gmail.com

Files

PathChange+/−
src/backend/executor/nodeBitmapHeapscan.c modified +20 −7

Discussion