pgsql: Add and use BitmapHeapScanDescData struct - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Add and use BitmapHeapScanDescData struct
Date
Msg-id E1tYZXQ-001zbg-G8@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

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

Modified Files
--------------
src/backend/access/heap/heapam.c         | 48 ++++++++++++++++++++++----------
src/backend/access/heap/heapam_handler.c | 18 +++++++-----
src/include/access/heapam.h              | 24 ++++++++++------
src/tools/pgindent/typedefs.list         |  1 +
4 files changed, 61 insertions(+), 30 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Rework macro pgstat_is_ioop_tracked_in_bytes()
Next
From: Tom Lane
Date:
Subject: pgsql: Fix setrefs.c's failure to do expression processing on prune ste