Add and use BitmapHeapScanDescData struct
authorMelanie Plageman <melanieplageman@gmail.com>
Thu, 16 Jan 2025 23:42:39 +0000 (18:42 -0500)
committerMelanie Plageman <melanieplageman@gmail.com>
Thu, 16 Jan 2025 23:42:39 +0000 (18:42 -0500)
commitf7a8fc10ccb882249f8624b937f2c3b467d07bd6
tree12853f752004fb0283206e30caa9cce4f970eb6c
parent7b6468cc9523d7d923487d212281af51f7f3dae2
Add and use BitmapHeapScanDescData struct

Move the several members of HeapScanDescData which are specific to
Bitmap Heap Scans into a new struct, BitmapHeapScanDescData, which
inherits from HeapScanDescData.

This reduces the size of the HeapScanDescData for other types of scans
and will allow us to add additional bitmap heap scan-specific members in
the future without fear of bloating the HeapScanDescData.

Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/c736f6aa-8b35-4e20-9621-62c7c82e2168%40vondra.me
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam_handler.c
src/include/access/heapam.h
src/tools/pgindent/typedefs.list