postgresql/src/include/commands
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
..
alter.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
async.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
cluster.h Remove bits* typedefs. 2026-03-30 16:12:08 -05:00
collationcmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
comment.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
conversioncmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
copy.h Add option force_array for COPY JSON FORMAT 2026-03-20 08:40:17 -04:00
copyapi.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
copyfrom_internal.h Optimize COPY FROM (FORMAT {text,csv}) using SIMD. 2026-03-13 11:07:32 -05:00
createas.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
dbcommands.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
dbcommands_xlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
defrem.h Add some const qualifiers enabled by typeof_unqual change on copyObject 2026-03-19 06:35:54 +01:00
discard.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
event_trigger.h Add some const qualifiers enabled by typeof_unqual change on copyObject 2026-03-19 06:35:54 +01:00
explain.h Reduce header inclusions via execnodes.h 2026-03-16 14:34:57 +01:00
explain_dr.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
explain_format.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
explain_state.h Reduce header inclusions via execnodes.h 2026-03-16 14:34:57 +01:00
extension.h Harden _int_matchsel() against being attached to the wrong operator. 2026-02-09 10:14:22 -05:00
lockcmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
matview.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
policy.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
portalcmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
prepare.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
proclang.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
progress.h Introduce the REPACK command 2026-03-10 19:56:39 +01:00
propgraphcmds.h SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
publicationcmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
schemacmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
seclabel.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
sequence.h Fix typos and inconsistencies in code and comments 2026-01-05 09:19:15 +09:00
sequence_xlog.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
subscriptioncmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tablecmds.h Don't include storage/lock.h in so many headers 2026-03-24 17:11:12 +01:00
tablespace.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
trigger.h Add some const qualifiers enabled by typeof_unqual change on copyObject 2026-03-19 06:35:54 +01:00
typecmds.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
user.h Add new GUC createrole_self_grant. 2023-01-10 12:44:49 -05:00
vacuum.h Avoid including vacuum.h in tableam.h and heapam.h. 2026-03-31 12:43:52 -05:00
view.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
wait.h Update copyright for 2026 2026-01-01 13:24:10 -05:00