pgsql: PageAddItemExtended(): Add LP_UNUSED assertion.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: PageAddItemExtended(): Add LP_UNUSED assertion.
Date: 2021-03-29 03:10:19
Message-ID: E1lQiIF-0004I7-W4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-03-29 06:46:53 pgsql: Reset standard_conforming_strings in strings test
Previous Message David Rowley 2021-03-29 02:00:17 pgsql: Cache if PathTarget and RestrictInfos contain volatile functions