pgsql: Move BitmapTableScan per-scan setup into a helper - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Move BitmapTableScan per-scan setup into a helper
Date
Msg-id E1tdbAZ-004U9U-Jo@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Move BitmapTableScan per-scan setup into a helper

Add BitmapTableScanSetup(), a helper which contains all of the code that
must be done on every scan of the table in a bitmap table scan. This
includes scanning the index, building the bitmap, and setting up the
scan descriptors.

Pushing this setup into a helper function makes BitmapHeapNext() more
readable.

Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/CAN55FZ1vXu%2BZdT0_MM-i1vbTdfHHf0KR3cK6R5gs6dNNNpyrJw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a5358c14b2fe2210a1ac0b836f8d54723043fba2

Modified Files
--------------
src/backend/executor/nodeBitmapHeapscan.c | 206 ++++++++++++++++--------------
1 file changed, 107 insertions(+), 99 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Doc: Generated column replication.
Next
From: Tom Lane
Date:
Subject: pgsql: Avoid integer overflow while testing wal_skip_threshold conditio