postgresql/src/include/access
David Rowley 34c6e65242 Make verify_compact_attribute available in non-assert builds
6f3820f37 adjusted the assert-enabled validation of the CompactAttribute
to call a new external function to perform the validation.  That commit
made it so the function was only available when building with
USE_ASSERT_CHECKING, and because TupleDescCompactAttr() is a static
inline function, the call to verify_compact_attribute() was compiled
into any extension which uses TupleDescCompactAttr().  This caused issues
for such extensions when loading the assert-enabled extension into
PostgreSQL versions without asserts enabled due to that function being
unavailable in core.

To fix this, make verify_compact_attribute() available unconditionally,
but make it do nothing unless building with USE_ASSERT_CHECKING.

Author: Andrew Kane <andrew@ankane.org>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAOdR5yHfMEMW00XGo=v1zCVUS6Huq2UehXdvKnwtXPTcZwXhmg@mail.gmail.com
2025-01-11 13:45:54 +13:00
..
amapi.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
amvalidate.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
attmap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
attnum.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
brin.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
brin_internal.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
brin_page.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
brin_pageops.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
brin_revmap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
brin_tuple.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
brin_xlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
bufmask.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
clog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
commit_ts.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
detoast.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
genam.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
generic_xlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
gin.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
gin_private.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
ginblock.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
ginxlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
gist.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
gist_private.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
gistscan.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
gistxlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
hash.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
hash_xlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
heapam.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
heapam_xlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
heaptoast.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
hio.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
htup.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
htup_details.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
itup.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
multixact.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
nbtree.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
nbtxlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
parallel.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
printsimple.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
printtup.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
relation.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
reloptions.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
relscan.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
rewriteheap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
rmgr.h Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
rmgrdesc_utils.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
rmgrlist.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sdir.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sequence.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
session.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
skey.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
slru.h Fix SLRU bank selection code 2025-01-09 07:39:05 +01:00
spgist.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
spgist_private.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
spgxlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
stratnum.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
subtrans.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
syncscan.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sysattr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
table.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
tableam.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
tidstore.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
timeline.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
toast_compression.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
toast_helper.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
toast_internals.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
transam.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
tsmapi.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
tupconvert.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
tupdesc.h Make verify_compact_attribute available in non-assert builds 2025-01-11 13:45:54 +13:00
tupdesc_details.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
tupmacs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
twophase.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
twophase_rmgr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
valid.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
visibilitymap.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
visibilitymapdefs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xact.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlog.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlog_internal.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogarchive.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogbackup.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogdefs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xloginsert.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogprefetcher.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogreader.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogrecord.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogrecovery.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogstats.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
xlogutils.h Update copyright for 2025 2025-01-01 11:21:55 -05:00