Thread: pgsql: PageAddItemExtended(): Add LP_UNUSED assertion.

pgsql: PageAddItemExtended(): Add LP_UNUSED assertion.

From
Peter Geoghegan
Date:
PageAddItemExtended(): Add LP_UNUSED assertion.

Assert that LP_UNUSED items have no storage.  If it's worth having
defensive code in non-assert builds then it's worth having an assertion
as well.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/30aaab26e52144097a1a5bbb0bb66ea1ebc0cb81

Modified Files
--------------
src/backend/storage/page/bufpage.c | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)