Add various assertions to heap pruning code.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 5 Nov 2021 02:07:54 +0000 (19:07 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 5 Nov 2021 02:07:54 +0000 (19:07 -0700)
commit5cd7eb1f1c32e1b95894f28b277b4e4b89add772
treebf41684b91bf567d2f689eab4ed0d276abfa1da2
parent9588622945754305836555273a6a3be814db315c
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
src/backend/access/heap/pruneheap.c