pgsql: Add various assertions to heap pruning code. - Mailing list pgsql-committers

From Peter Geoghegan
Subject pgsql: Add various assertions to heap pruning code.
Date
Msg-id E1miofr-0003a8-8p@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Add various assertions to heap pruning code.  (Michael Paquier <michael@paquier.xyz>)
List pgsql-committers
Add various assertions to heap pruning code.

These assertions document (and verify) our high level assumptions about
how pruning can and cannot affect existing items from target heap pages.
For example, one of the new assertions verifies that pruning does not
set a heap-only tuple to LP_DEAD.

Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-By: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAH2-Wz=vhvBx1GjF+oueHh8YQcHoQYrMi0F0zFMHEr8yc4sCoA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5cd7eb1f1c32e1b95894f28b277b4e4b89add772

Modified Files
--------------
src/backend/access/heap/pruneheap.c | 84 +++++++++++++++++++++++++++++++++++--
1 file changed, 80 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pgsql: Fix snapshot reference leak if lo_export fails.
Next
From: Michael Paquier
Date:
Subject: pgsql: Add support for LZ4 compression in pg_receivewal