Move BitmapTableScan per-scan setup into a helper
authorMelanie Plageman
Thu, 30 Jan 2025 20:26:55 +0000 (15:26 -0500)
committerMelanie Plageman
Thu, 30 Jan 2025 20:28:33 +0000 (15:28 -0500)
commita5358c14b2fe2210a1ac0b836f8d54723043fba2
tree1bba2e0c58b6ee76e167e820af109ef332885127
parent115a365519bfd53a65bf17d253b26902eff0c337
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
Discussion: https://postgr.es/m/CAN55FZ1vXu%2BZdT0_MM-i1vbTdfHHf0KR3cK6R5gs6dNNNpyrJw%40mail.gmail.com
src/backend/executor/nodeBitmapHeapscan.c