pgsql: Save vmbuffer in heap-specific scan descriptors for on-access pr - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Save vmbuffer in heap-specific scan descriptors for on-access pr
Date
Msg-id E1w1n7j-000IV8-09@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Save vmbuffer in heap-specific scan descriptors for on-access pruning

Future commits will use the visibility map in on-access pruning to fix
VM corruption and set the VM if the page is all-visible.

Saving the vmbuffer in the scan descriptor reduces the number of times
it would need to be pinned and unpinned, making the overhead of doing so
negligible.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/C3AB3F5B-626E-4AAA-9529-23E9A20C727F%40gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/99bf1f8aa6cd8029cb9ce17d4a804eed386bec97

Modified Files
--------------
src/backend/access/heap/heapam.c         | 12 +++++++++++-
src/backend/access/heap/heapam_handler.c | 12 ++++++++++--
src/backend/access/heap/pruneheap.c      |  6 +++++-
src/include/access/heapam.h              | 19 ++++++++++++++++---
4 files changed, 42 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Melanie Plageman
Date:
Subject: pgsql: Avoid BufferGetPage() calls in heap_update()
Next
From: Melanie Plageman
Date:
Subject: Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11