postgresql/src/include/access
Nathan Bossart 771fe0948c Avoid including vacuum.h in tableam.h and heapam.h.
Commit 2252fcd427 modified some function prototypes in tableam.h
and heapam.h to take a VacuumParams argument instead of a pointer,
which required including vacuum.h in those headers.  vacuum.h has a
reasonably large dependency tree, and headers like tableam.h are
widely included, so this is not ideal.  To fix, change the
functions in question to accept a "const VacuumParams *" argument
instead.  That allows us to use a forward declaration for
VacuumParams and avoid including vacuum.h.  Since vacuum_rel()
needs to scribble on the params argument, we still pass it by value
to that function so that the original struct is not modified.

Reported-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/rzxpxod4c4la62yvutyrvgoyilrl2fx55djaf2suidy7np5m6c%403l2ln476eadh
2026-03-31 12:43:52 -05:00
..
amapi.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
amvalidate.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
attmap.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
attnum.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
brin.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
brin_internal.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
brin_page.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
brin_pageops.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
brin_revmap.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
brin_tuple.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
brin_xlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
bufmask.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
clog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
cmptype.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
commit_ts.h Standardize replication origin naming to use "ReplOrigin". 2026-01-28 11:03:29 -08:00
detoast.h Improve type handling of varlena structures 2026-02-11 07:33:24 +09:00
genam.h Thread flags through begin-scan APIs 2026-03-30 12:27:24 -04:00
generic_xlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
gin.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
gin_private.h Reduce header inclusions via execnodes.h 2026-03-16 14:34:57 +01:00
gin_tuple.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
ginblock.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
ginxlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
gist.h Do not lock in BufferGetLSNAtomic() on archs with 8 byte atomic reads 2026-03-11 19:46:08 +01:00
gist_private.h Move fake LSN infrastructure out of GiST. 2026-03-13 19:38:17 -04:00
gistscan.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
gistxlog.h Move fake LSN infrastructure out of GiST. 2026-03-13 19:38:17 -04:00
hash.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
hash_xlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
heapam.h Avoid including vacuum.h in tableam.h and heapam.h. 2026-03-31 12:43:52 -05:00
heapam_xlog.h Remove XLOG_HEAP2_VISIBLE entirely 2026-03-24 17:58:12 -04:00
heaptoast.h Improve type handling of varlena structures 2026-02-11 07:33:24 +09:00
hio.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
htup.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
htup_details.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
itup.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
multixact.h Remove some unnecessary code from multixact truncation 2026-01-15 13:34:50 +02:00
multixact_internal.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
nbtree.h nbtree: Avoid allocating _bt_search stack. 2026-03-12 13:22:36 -04:00
nbtxlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
parallel.h Don't include proc.h in shm_mq.h 2026-02-27 10:53:47 +01:00
printsimple.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
printtup.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
relation.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
reloptions.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
relscan.h Thread flags through begin-scan APIs 2026-03-30 12:27:24 -04:00
rewriteheap.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
rmgr.h Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
rmgrdesc_utils.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
rmgrlist.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
sdir.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
sequence.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
session.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
skey.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
slru.h Add callback for I/O error messages in SLRUs 2026-03-13 16:21:06 +02:00
spgist.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
spgist_private.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
spgxlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
stratnum.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
subtrans.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
syncscan.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
sysattr.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
table.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tableam.h Avoid including vacuum.h in tableam.h and heapam.h. 2026-03-31 12:43:52 -05:00
tidstore.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
timeline.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
toast_compression.h Change default value of default_toast_compression to "lz4", take two 2026-03-05 09:24:35 +09:00
toast_helper.h Improve type handling of varlena structures 2026-02-11 07:33:24 +09:00
toast_internals.h Improve type handling of varlena structures 2026-02-11 07:33:24 +09:00
transam.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tsmapi.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tupconvert.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tupdesc.h Bounds-check access to TupleDescAttr with an Assert. 2026-03-24 08:58:50 -04:00
tupdesc_details.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tupmacs.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
twophase.h Don't include storage/lock.h in so many headers 2026-03-24 17:11:12 +01:00
twophase_rmgr.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
valid.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
visibilitymap.h Remove XLOG_HEAP2_VISIBLE entirely 2026-03-24 17:58:12 -04:00
visibilitymapdefs.h Remove XLOG_HEAP2_VISIBLE entirely 2026-03-24 17:58:12 -04:00
xact.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
xlog.h Move fake LSN infrastructure out of GiST. 2026-03-13 19:38:17 -04:00
xlog_internal.h Formalize WAL record for XLOG_CHECKPOINT_REDO 2026-03-31 09:38:01 +02:00
xlogarchive.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
xlogbackup.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
xlogdefs.h Rename AssertVariableIsOfType to StaticAssertVariableIsOfType 2026-02-03 08:45:24 +01:00
xloginsert.h Move fake LSN infrastructure out of GiST. 2026-03-13 19:38:17 -04:00
xlogprefetcher.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
xlogreader.h Report detailed errors from XLogFindNextRecord() failures. 2026-03-24 22:33:09 +09:00
xlogrecord.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
xlogrecovery.h Move definition of XLogRecoveryCtlData to xlogrecovery.h 2026-03-05 12:17:47 +09:00
xlogstats.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
xlogutils.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
xlogwait.h Extend xlogwait infrastructure with write and flush wait types 2026-01-05 19:56:19 +02:00