pgsql: BitmapHeapScan: begin scan after bitmap creation

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: BitmapHeapScan: begin scan after bitmap creation
Date: 2024-04-06 20:58:32
Message-ID: E1rtD7P-000r8g-SX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1577081e9614345534a018e788a2c0bab4da4dc5

Modified Files
--------------
src/backend/executor/nodeBitmapHeapscan.c | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2024-04-06 21:50:10 pgsql: Call WaitLSNCleanup() in AbortTransaction()
Previous Message Noah Misch 2024-04-06 16:28:08 pgsql: Backport IPC::Run optimization to src/test/perl.