Remove unused #include's from backend .c files
authorPeter Eisentraut <[email protected]>
Sun, 27 Oct 2024 07:18:25 +0000 (08:18 +0100)
committerPeter Eisentraut <[email protected]>
Sun, 27 Oct 2024 07:26:50 +0000 (08:26 +0100)
as determined by IWYU

These are mostly issues that are new since commit dbbca2cf299.

Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org

59 files changed:
src/backend/access/brin/brin_bloom.c
src/backend/access/gin/ginvacuum.c
src/backend/access/heap/vacuumlazy.c
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/sequence/sequence.c
src/backend/access/transam/slru.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogwait.c
src/backend/backup/basebackup.c
src/backend/backup/basebackup_incremental.c
src/backend/catalog/pg_depend.c
src/backend/commands/analyze.c
src/backend/commands/cluster.c
src/backend/commands/copyfromparse.c
src/backend/commands/createas.c
src/backend/commands/indexcmds.c
src/backend/commands/vacuum.c
src/backend/executor/nodeBitmapHeapscan.c
src/backend/executor/nodeHash.c
src/backend/lib/integerset.c
src/backend/libpq/be-secure-gssapi.c
src/backend/libpq/be-secure-openssl.c
src/backend/main/main.c
src/backend/parser/gram.y
src/backend/parser/parse_clause.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_jsontable.c
src/backend/postmaster/auxprocess.c
src/backend/postmaster/launch_backend.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/walwriter.c
src/backend/replication/logical/slotsync.c
src/backend/replication/slotfuncs.c
src/backend/storage/aio/read_stream.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/file/fd.c
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/sinvaladt.c
src/backend/storage/lmgr/lmgr.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/s_lock.c
src/backend/storage/page/checksum.c
src/backend/storage/smgr/bulk_write.c
src/backend/tcop/fastpath.c
src/backend/tcop/postgres.c
src/backend/utils/Gen_fmgrtab.pl
src/backend/utils/activity/backend_progress.c
src/backend/utils/activity/backend_status.c
src/backend/utils/activity/pgstat.c
src/backend/utils/activity/pgstat_relation.c
src/backend/utils/activity/wait_event.c
src/backend/utils/adt/float.c
src/backend/utils/adt/jsonpath_exec.c
src/backend/utils/adt/pg_upgrade_support.c
src/backend/utils/adt/waitfuncs.c
src/backend/utils/hash/pg_crc.c
src/backend/utils/misc/injection_point.c
src/backend/utils/misc/pg_config.c

index f94e2b0bfbd95fae6a90542f4e647414854b7c07..2e210d3e227e3c79c5d943cffd02677a05ddb5ae 100644 (file)
 #include "access/htup_details.h"
 #include "access/reloptions.h"
 #include "catalog/pg_am.h"
-#include "catalog/pg_amop.h"
 #include "catalog/pg_type.h"
 #include "common/hashfn.h"
 #include "utils/fmgrprotos.h"
index b3f415e2849a0b634c04bbd7a04173f1a4c5f242..c6e8b39d4c9e3dc5c093a4e9cb5695d75b4fc155 100644 (file)
@@ -19,7 +19,6 @@
 #include "access/xloginsert.h"
 #include "commands/vacuum.h"
 #include "miscadmin.h"
-#include "postmaster/autovacuum.h"
 #include "storage/indexfsm.h"
 #include "storage/lmgr.h"
 #include "storage/predicate.h"
index d82aa3d489636f896d99aac98ab442214a399d8d..793bd33cb4d9ad1ec54674448197986be0740721 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "access/genam.h"
 #include "access/heapam.h"
-#include "access/heapam_xlog.h"
 #include "access/htup_details.h"
 #include "access/multixact.h"
 #include "access/tidstore.h"
@@ -56,7 +55,6 @@
 #include "storage/freespace.h"
 #include "storage/lmgr.h"
 #include "utils/lsyscache.h"
-#include "utils/memutils.h"
 #include "utils/pg_rusage.h"
 #include "utils/timestamp.h"
 
index f4f79f27062d4631f7cff7a66637a2af632b210e..484ede8c2e1df77bbf9e288ce098dfa62bb367c5 100644 (file)
 
 #include "access/nbtree.h"
 #include "access/relscan.h"
-#include "access/xloginsert.h"
 #include "commands/progress.h"
 #include "commands/vacuum.h"
-#include "miscadmin.h"
 #include "nodes/execnodes.h"
 #include "pgstat.h"
 #include "storage/bulk_write.h"
@@ -31,7 +29,6 @@
 #include "storage/indexfsm.h"
 #include "storage/ipc.h"
 #include "storage/lmgr.h"
-#include "storage/smgr.h"
 #include "utils/fmgrprotos.h"
 #include "utils/index_selfuncs.h"
 #include "utils/memutils.h"
index 5cca0d4f520b5fd5bc943d59cd30f05f749bf219..fb9a05f7af1d1431e6b93c843d08cc2ee457a9ec 100644 (file)
@@ -45,7 +45,6 @@
 #include "access/relscan.h"
 #include "access/table.h"
 #include "access/xact.h"
-#include "access/xloginsert.h"
 #include "catalog/index.h"
 #include "commands/progress.h"
 #include "executor/instrument.h"
index 8d6b7bb5dc25b66f824d28c197bf26a07a16eefe..d2cf95aadc2a8a0b5f8ae2d030bdb4f4481134e9 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "access/relation.h"
 #include "access/sequence.h"
-#include "storage/lmgr.h"
+#include "utils/rel.h"
 
 static inline void validate_relation_kind(Relation r);
 
index 889eff1815b48887577a857a2a6da5586e408f27..f249c3cd05e88d4f60b850f39ecc22c0e022fb46 100644 (file)
@@ -70,7 +70,7 @@
 #include "pgstat.h"
 #include "storage/fd.h"
 #include "storage/shmem.h"
-#include "utils/guc_hooks.h"
+#include "utils/guc.h"
 
 /*
  * Converts segment number to the filename of the segment.
index ad9b0b612f4a36ed4fcc0932da432443eb380cf7..5a2801e482f353f8a739e04a0d5441a83d426137 100644 (file)
@@ -74,7 +74,6 @@
 #include "pg_trace.h"
 #include "pgstat.h"
 #include "port/atomics.h"
-#include "port/pg_iovec.h"
 #include "postmaster/bgwriter.h"
 #include "postmaster/startup.h"
 #include "postmaster/walsummarizer.h"
@@ -98,7 +97,6 @@
 #include "utils/guc_hooks.h"
 #include "utils/guc_tables.h"
 #include "utils/injection_point.h"
-#include "utils/memutils.h"
 #include "utils/ps_status.h"
 #include "utils/relmapper.h"
 #include "utils/snapmgr.h"
index 8860a9c73da28adaef025f63bb22c37bc00beec4..0ec0898cfbff9788c273b57640b9a6c81c62d8d0 100644 (file)
@@ -22,7 +22,6 @@
 #include "access/xlog.h"
 #include "access/xlogrecovery.h"
 #include "access/xlogwait.h"
-#include "funcapi.h"
 #include "miscadmin.h"
 #include "storage/latch.h"
 #include "storage/proc.h"
@@ -30,7 +29,6 @@
 #include "utils/fmgrprotos.h"
 #include "utils/pg_lsn.h"
 #include "utils/snapmgr.h"
-#include "utils/wait_event_types.h"
 
 static int waitlsn_cmp(const pairingheap_node *a, const pairingheap_node *b,
                        void *arg);
index 0f8cddcbeeba0d0ae84b2dcc942c09823467948e..e2ed9081d1c4472a770c45bea08fe851d941d42a 100644 (file)
@@ -33,7 +33,6 @@
 #include "nodes/pg_list.h"
 #include "pgstat.h"
 #include "pgtar.h"
-#include "port.h"
 #include "postmaster/syslogger.h"
 #include "postmaster/walsummarizer.h"
 #include "replication/slot.h"
index f581a5f9e68f93a24ec125bf1269e2aad8465b5d..275615877eb25604b4e172b7ece4656ab59c2a27 100644 (file)
@@ -27,9 +27,7 @@
 #include "common/hashfn.h"
 #include "common/int.h"
 #include "common/parse_manifest.h"
-#include "datatype/timestamp.h"
 #include "postmaster/walsummarizer.h"
-#include "utils/timestamp.h"
 
 #define    BLOCKS_PER_READ         512
 
index cfd7ef51dfa29b7ba4c62ca23a8ec387271e0502..2b4514e8a3590adf7aa983fc7804467ca8409e1e 100644 (file)
@@ -28,7 +28,6 @@
 #include "miscadmin.h"
 #include "utils/fmgroids.h"
 #include "utils/lsyscache.h"
-#include "utils/syscache.h"
 #include "utils/rel.h"
 
 
index 38fb4c3ef2328733f2b14152504e17e266f4a5db..9a56de2282f824c9320ddacfc01f3553fa72914d 100644 (file)
@@ -41,7 +41,6 @@
 #include "parser/parse_oper.h"
 #include "parser/parse_relation.h"
 #include "pgstat.h"
-#include "postmaster/autovacuum.h"
 #include "statistics/extended_stats_internal.h"
 #include "statistics/statistics.h"
 #include "storage/bufmgr.h"
@@ -54,7 +53,6 @@
 #include "utils/pg_rusage.h"
 #include "utils/sampling.h"
 #include "utils/sortsupport.h"
-#include "utils/spccache.h"
 #include "utils/syscache.h"
 #include "utils/timestamp.h"
 
index 78f96789b0e84dc0a246c9e0334455e0201c997b..ae0863d9a254cbca96ffc54628fd74ce3463ab15 100644 (file)
@@ -32,7 +32,6 @@
 #include "catalog/namespace.h"
 #include "catalog/objectaccess.h"
 #include "catalog/pg_am.h"
-#include "catalog/pg_database.h"
 #include "catalog/pg_inherits.h"
 #include "catalog/toasting.h"
 #include "commands/cluster.h"
index 654fecb1b14c100ca217a75cf9a1ba2f6e402436..d1d43b53d8365bc0f7ba34a400af15f7d0d42917 100644 (file)
@@ -70,7 +70,6 @@
 #include "libpq/pqformat.h"
 #include "mb/pg_wchar.h"
 #include "miscadmin.h"
-#include "nodes/miscnodes.h"
 #include "pgstat.h"
 #include "port/pg_bswap.h"
 #include "utils/builtins.h"
index 68ec122dbf9e66f7686bd16a83a8f6cea15a867c..aaeaaffe405cf8bbbe8b59a3c906b5a31386df1e 100644 (file)
 #include "commands/prepare.h"
 #include "commands/tablecmds.h"
 #include "commands/view.h"
-#include "miscadmin.h"
 #include "nodes/makefuncs.h"
 #include "nodes/nodeFuncs.h"
 #include "rewrite/rewriteHandler.h"
 #include "tcop/tcopprot.h"
 #include "utils/builtins.h"
 #include "utils/lsyscache.h"
-#include "utils/rel.h"
 #include "utils/rls.h"
 #include "utils/snapmgr.h"
 
index e33ad815295e72f46d8712c8ea020ca7a3183b8b..2f652463e3c57f5c18c0ac67f7ce3edc52ad6fbc 100644 (file)
@@ -58,7 +58,6 @@
 #include "storage/lmgr.h"
 #include "storage/proc.h"
 #include "storage/procarray.h"
-#include "storage/sinvaladt.h"
 #include "utils/acl.h"
 #include "utils/builtins.h"
 #include "utils/fmgroids.h"
index ac8f5d9c259c557017011d51220401a1e4ace1b4..86f36b369543585779a6f30a6c8dc8d1f3976d88 100644 (file)
@@ -34,7 +34,6 @@
 #include "access/tableam.h"
 #include "access/transam.h"
 #include "access/xact.h"
-#include "catalog/index.h"
 #include "catalog/namespace.h"
 #include "catalog/pg_database.h"
 #include "catalog/pg_inherits.h"
index 89a16f142b7629e6e97d6f1a3d4667863b7e2ce4..337c16e6544f5dd075d3e97af560538c45a64539 100644 (file)
@@ -46,7 +46,6 @@
 #include "pgstat.h"
 #include "storage/bufmgr.h"
 #include "utils/rel.h"
-#include "utils/snapmgr.h"
 #include "utils/spccache.h"
 
 static TupleTableSlot *BitmapHeapNext(BitmapHeapScanState *node);
index 0456a017dc6edcce3f21482fbda3af24e7a4487c..3e22d50e3a404fc33a0bb207d58dc71bd3592350 100644 (file)
@@ -35,7 +35,6 @@
 #include "executor/nodeHash.h"
 #include "executor/nodeHashjoin.h"
 #include "miscadmin.h"
-#include "port/atomics.h"
 #include "port/pg_bitutils.h"
 #include "utils/dynahash.h"
 #include "utils/lsyscache.h"
index 9f1d4db52b2dfbb576543957865f5ba0c5321421..bd9b28e19bd365c6ac122be3d16a8d0d2aeb5adc 100644 (file)
@@ -72,7 +72,6 @@
 #include "postgres.h"
 
 #include "lib/integerset.h"
-#include "port/pg_bitutils.h"
 #include "utils/memutils.h"
 
 
index 2d36c76324a38719c381de6e104aa14f3f83f0bb..5a009776d1215fa769aeab03688ccbc81a4f2ffb 100644 (file)
@@ -18,9 +18,9 @@
 #include "libpq/auth.h"
 #include "libpq/be-gssapi-common.h"
 #include "libpq/libpq.h"
-#include "libpq/pqformat.h"
 #include "miscadmin.h"
 #include "pgstat.h"
+#include "port/pg_bswap.h"
 #include "utils/injection_point.h"
 #include "utils/memutils.h"
 
index 469be36e76413dc6cb1b6f5e9b7152cbe83bd741..91a86d62a35b77fde2d33b4b171da5d0e40bcdd3 100644 (file)
@@ -33,8 +33,7 @@
 #include "pgstat.h"
 #include "storage/fd.h"
 #include "storage/latch.h"
-#include "tcop/tcopprot.h"
-#include "utils/builtins.h"
+#include "utils/guc.h"
 #include "utils/memutils.h"
 
 /*
index 4672aab83786ce41235f4719c30b2fc02d5d63b4..aea93a0229826fa8d08b866142d9d0735b76bbb1 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "bootstrap/bootstrap.h"
 #include "common/username.h"
-#include "port/atomics.h"
 #include "postmaster/postmaster.h"
 #include "tcop/tcopprot.h"
 #include "utils/help_config.h"
index baca4059d2ec31d2de91f0e22aac07ef78449dd7..dd458182f02f706ad60fdac881b96c50b3d22f39 100644 (file)
@@ -48,7 +48,6 @@
 #include <ctype.h>
 #include <limits.h>
 
-#include "access/tableam.h"
 #include "catalog/index.h"
 #include "catalog/namespace.h"
 #include "catalog/pg_am.h"
 #include "nodes/makefuncs.h"
 #include "nodes/nodeFuncs.h"
 #include "parser/parser.h"
-#include "storage/lmgr.h"
-#include "utils/date.h"
 #include "utils/datetime.h"
-#include "utils/numeric.h"
 #include "utils/xml.h"
 
 
index 4c9769090884daeb43745304b5b42176bd1c6143..979926b6052f506e0c3e06ce9593c2c8013a24f1 100644 (file)
 #include "parser/parse_target.h"
 #include "parser/parse_type.h"
 #include "parser/parser.h"
-#include "parser/parsetree.h"
 #include "rewrite/rewriteManip.h"
 #include "utils/builtins.h"
 #include "utils/catcache.h"
-#include "utils/guc.h"
 #include "utils/lsyscache.h"
 #include "utils/rel.h"
 #include "utils/syscache.h"
index ef0b560f5e3bfdbdabdbe476ff308786f68e13aa..c2806297aa4002c81986ae473a5014c1e386f520 100644 (file)
@@ -16,7 +16,6 @@
 #include "postgres.h"
 
 #include "catalog/pg_aggregate.h"
-#include "catalog/pg_proc.h"
 #include "catalog/pg_type.h"
 #include "commands/dbcommands.h"
 #include "miscadmin.h"
@@ -37,7 +36,6 @@
 #include "utils/builtins.h"
 #include "utils/date.h"
 #include "utils/fmgroids.h"
-#include "utils/jsonb.h"
 #include "utils/lsyscache.h"
 #include "utils/timestamp.h"
 #include "utils/xml.h"
index 6d4e4968202e7962f363410596d7bbcc2e071174..ecb140e6e71b1ac375ffcb8cfa5b7b62d83e2139 100644 (file)
@@ -15,9 +15,7 @@
 
 #include "postgres.h"
 
-#include "catalog/pg_collation.h"
 #include "catalog/pg_type.h"
-#include "miscadmin.h"
 #include "nodes/makefuncs.h"
 #include "nodes/nodeFuncs.h"
 #include "optimizer/optimizer.h"
@@ -26,7 +24,7 @@
 #include "parser/parse_expr.h"
 #include "parser/parse_relation.h"
 #include "parser/parse_type.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/json.h"
 #include "utils/lsyscache.h"
 
index 74b8a00c94bd2e3e755ab0aae0d18934aa6174fd..d19174bda392227d001a3c53b39e6bbc6521661a 100644 (file)
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "postmaster/auxprocess.h"
-#include "postmaster/bgwriter.h"
-#include "postmaster/startup.h"
-#include "postmaster/walsummarizer.h"
-#include "postmaster/walwriter.h"
-#include "replication/walreceiver.h"
 #include "storage/condition_variable.h"
 #include "storage/ipc.h"
 #include "storage/proc.h"
index 0ae23fdf55eeb16aaa6f255c4ced3ba4d2d6ff90..25020cedad0a8ba004b1e2a28c1883aed81a1002 100644 (file)
 
 #include <unistd.h>
 
-#include "access/xlog.h"
-#include "common/file_utils.h"
 #include "libpq/libpq-be.h"
-#include "libpq/pqsignal.h"
 #include "miscadmin.h"
-#include "nodes/queryjumble.h"
-#include "port.h"
 #include "postmaster/autovacuum.h"
-#include "postmaster/auxprocess.h"
 #include "postmaster/bgworker_internals.h"
 #include "postmaster/bgwriter.h"
 #include "postmaster/fork_process.h"
 #include "replication/slotsync.h"
 #include "replication/walreceiver.h"
 #include "storage/dsm.h"
-#include "storage/fd.h"
-#include "storage/ipc.h"
 #include "storage/pg_shmem.h"
-#include "storage/pmsignal.h"
-#include "storage/proc.h"
-#include "storage/procsignal.h"
 #include "tcop/backend_startup.h"
-#include "tcop/tcopprot.h"
-#include "utils/builtins.h"
-#include "utils/datetime.h"
-#include "utils/guc.h"
-#include "utils/injection_point.h"
 #include "utils/memutils.h"
-#include "utils/timestamp.h"
 
 #ifdef EXEC_BACKEND
 #include "nodes/queryjumble.h"
 
 #ifdef EXEC_BACKEND
 
+#include "common/file_utils.h"
+#include "storage/fd.h"
+#include "storage/lwlock.h"
+#include "storage/pmsignal.h"
+#include "storage/proc.h"
+#include "storage/procsignal.h"
+#include "tcop/tcopprot.h"
+#include "utils/injection_point.h"
+
 /* Type for a socket that can be inherited to a client process */
 #ifdef WIN32
 typedef struct
index 85fd24e8287aee4cba9d199fda0edaa859ad3d7a..407f55996ba0999dd68c87ccb0f9030cc4ea840f 100644 (file)
@@ -92,8 +92,6 @@
 #include "access/xlog.h"
 #include "access/xlogrecovery.h"
 #include "common/file_perm.h"
-#include "common/file_utils.h"
-#include "common/ip.h"
 #include "common/pg_prng.h"
 #include "lib/ilist.h"
 #include "libpq/libpq.h"
 #include "pgstat.h"
 #include "port/pg_bswap.h"
 #include "postmaster/autovacuum.h"
-#include "postmaster/auxprocess.h"
 #include "postmaster/bgworker_internals.h"
 #include "postmaster/pgarch.h"
 #include "postmaster/postmaster.h"
 #include "storage/fd.h"
 #include "storage/ipc.h"
 #include "storage/pmsignal.h"
-#include "storage/proc.h"
 #include "tcop/backend_startup.h"
 #include "tcop/tcopprot.h"
 #include "utils/datetime.h"
 #include "utils/varlena.h"
 
 #ifdef EXEC_BACKEND
+#include "common/file_utils.h"
 #include "storage/pg_shmem.h"
 #endif
 
index 6e7918a78d47844b30d4ab52892d62fc84493c53..91013f6e93660e4c28dc0a180a705aa66849b302 100644 (file)
 #include "storage/bufmgr.h"
 #include "storage/condition_variable.h"
 #include "storage/fd.h"
-#include "storage/ipc.h"
 #include "storage/lwlock.h"
 #include "storage/proc.h"
 #include "storage/procsignal.h"
 #include "storage/smgr.h"
-#include "utils/guc.h"
 #include "utils/hsearch.h"
 #include "utils/memutils.h"
 #include "utils/resowner.h"
index f9649eec1a59f80fa7b3a31f4a7b3cfb2a129913..d62186a5107ebc841db02846d4b0f7f9055c7d26 100644 (file)
@@ -55,9 +55,7 @@
 #include "commands/dbcommands.h"
 #include "libpq/pqsignal.h"
 #include "pgstat.h"
-#include "postmaster/fork_process.h"
 #include "postmaster/interrupt.h"
-#include "postmaster/postmaster.h"
 #include "replication/logical.h"
 #include "replication/slotsync.h"
 #include "replication/snapbuild.h"
index c7bfbb15e0a18408e230ec245bdc87ee8a49e386..488a161b3e7afee3080d9483a7376b4ee7f6ae31 100644 (file)
 #include "access/xlogrecovery.h"
 #include "access/xlogutils.h"
 #include "funcapi.h"
-#include "miscadmin.h"
-#include "replication/decode.h"
 #include "replication/logical.h"
 #include "replication/slot.h"
 #include "replication/slotsync.h"
 #include "utils/builtins.h"
 #include "utils/guc.h"
-#include "utils/inval.h"
 #include "utils/pg_lsn.h"
-#include "utils/resowner.h"
 
 /*
  * Helper function for creating a new physical replication slot with
index b8ea1180e25990d6f0263ba065acc9e7c402d06e..3d30e6224f73616c687cd3c2f911ba9e89d153b2 100644 (file)
@@ -89,7 +89,6 @@
  */
 #include "postgres.h"
 
-#include "catalog/pg_tablespace.h"
 #include "miscadmin.h"
 #include "storage/fd.h"
 #include "storage/smgr.h"
index 09bec6449b6d920ed5cd87991f4e6b3332bce9c0..56761a8eedc77a0074db5fa561e4d73c9b1f1021 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "storage/buf_internals.h"
 #include "storage/bufmgr.h"
-#include "storage/proc.h"
 
 BufferDescPadded *BufferDescriptors;
 char      *BufferBlocks;
index ec1505802b995eb9d32715e7e11434815c072460..42bf857e873f4052d137320d0a36e796f97014e3 100644 (file)
@@ -93,7 +93,6 @@
 #include "common/pg_prng.h"
 #include "miscadmin.h"
 #include "pgstat.h"
-#include "portability/mem.h"
 #include "postmaster/startup.h"
 #include "storage/fd.h"
 #include "storage/ipc.h"
index 9ff687045f41e02a2133cff40940eac9555efaee..d68aa29d93e48e53a77fbb3dd029a2780ae2d61e 100644 (file)
@@ -31,7 +31,6 @@
 #include "postmaster/autovacuum.h"
 #include "postmaster/bgworker_internals.h"
 #include "postmaster/bgwriter.h"
-#include "postmaster/postmaster.h"
 #include "postmaster/walsummarizer.h"
 #include "replication/logicallauncher.h"
 #include "replication/origin.h"
@@ -50,7 +49,6 @@
 #include "storage/procarray.h"
 #include "storage/procsignal.h"
 #include "storage/sinvaladt.h"
-#include "storage/spin.h"
 #include "utils/guc.h"
 #include "utils/injection_point.h"
 
index db59637c4387c4f541b4e4e056a09612a3acac9a..ff817449a445bc4c9d195aa49a0758a471ccc121 100644 (file)
@@ -17,7 +17,6 @@
 #include <signal.h>
 #include <unistd.h>
 
-#include "access/transam.h"
 #include "miscadmin.h"
 #include "storage/ipc.h"
 #include "storage/proc.h"
index 094522acb414d86376360424f7121c6b7f9dc4b6..9f43620e472fb128cf80bfc73141917afbd0fc4b 100644 (file)
@@ -24,7 +24,6 @@
 #include "storage/lmgr.h"
 #include "storage/proc.h"
 #include "storage/procarray.h"
-#include "storage/sinvaladt.h"
 #include "utils/inval.h"
 
 
index 4fccb7277e1a0624b9ead1cffac5a973351bfe24..59ca97ba025f7572e326cc92d7701a726b2790e2 100644 (file)
@@ -41,7 +41,6 @@
 #include "pg_trace.h"
 #include "storage/proc.h"
 #include "storage/procarray.h"
-#include "storage/sinvaladt.h"
 #include "storage/spin.h"
 #include "storage/standby.h"
 #include "utils/memutils.h"
index 69549a65dbacc766e92fa608e95d71c11dc14573..f37d338566fd9c5e736310dcfd52a664e15cf346 100644 (file)
@@ -51,7 +51,6 @@
 #include <unistd.h>
 
 #include "common/pg_prng.h"
-#include "port/atomics.h"
 #include "storage/s_lock.h"
 #include "utils/wait_event.h"
 
index 243878fe9e06f3db0d8f4b4d6fa50e58064c5a04..ffc3d245887f6d5ec0158dccf0d54d0b23157dc0 100644 (file)
@@ -19,4 +19,4 @@
  * external programs can incorporate the checksum code by #include'ing
  * that file from the exported Postgres headers.  (Compare our CRC code.)
  */
-#include "storage/checksum_impl.h"
+#include "storage/checksum_impl.h" /* IWYU pragma: keep */
index 1a5f3ce96e150797fadd39baca2ce5291f55bd21..f0a65bfe242f4245fd9f7012ddf07ae0d64718a0 100644 (file)
@@ -36,7 +36,6 @@
 
 #include "access/xloginsert.h"
 #include "access/xlogrecord.h"
-#include "storage/bufmgr.h"
 #include "storage/bufpage.h"
 #include "storage/bulk_write.h"
 #include "storage/proc.h"
index deac71335c2ef39cd7b9881e9014ddd76e40571b..c6281cf86d3776400c7f4205cd6f3a84944ff81c 100644 (file)
@@ -26,7 +26,6 @@
 #include "libpq/protocol.h"
 #include "mb/pg_wchar.h"
 #include "miscadmin.h"
-#include "port/pg_bswap.h"
 #include "tcop/fastpath.h"
 #include "tcop/tcopprot.h"
 #include "utils/acl.h"
index 7f5eada9d45299cffdf002dffa688dd485901fa9..8cc23a9cef85d23329421e159f9f2ac978597a51 100644 (file)
@@ -53,7 +53,6 @@
 #include "pg_getopt.h"
 #include "pg_trace.h"
 #include "pgstat.h"
-#include "postmaster/autovacuum.h"
 #include "postmaster/interrupt.h"
 #include "postmaster/postmaster.h"
 #include "replication/logicallauncher.h"
index 37628a85c73c35fb36f283dc025c8025f1d847dc..738828b95c6c258662c9ea6de13744ca74f0c1c7 100644 (file)
@@ -182,7 +182,6 @@ print $tfh <<TFH;
 
 #include "postgres.h"
 
-#include "access/transam.h"
 #include "utils/fmgrtab.h"
 #include "utils/fmgrprotos.h"
 
index c78c5eb50764204ef92c31066a5d8ac46685052a..b80249a79e7d5bc25a6a855a097170fbd490e267 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "access/parallel.h"
 #include "libpq/pqformat.h"
-#include "port/atomics.h"      /* for memory barriers */
 #include "utils/backend_progress.h"
 #include "utils/backend_status.h"
 
index 34a55e2177d767b8f827a5ad90d0b0875d3727c0..bdb3a296ca6710b476ef4da8a0839b0903d1cce9 100644 (file)
 #include "miscadmin.h"
 #include "pg_trace.h"
 #include "pgstat.h"
-#include "port/atomics.h"      /* for memory barriers */
 #include "storage/ipc.h"
 #include "storage/proc.h"      /* for MyProc */
 #include "storage/procarray.h"
-#include "storage/sinvaladt.h"
 #include "utils/ascii.h"
 #include "utils/guc.h"         /* for application_name */
 #include "utils/memutils.h"
index d1768a89f6e52205c6931f34720896589782f4d0..be48432cc3840d9de614343329c6e9063e420ca1 100644 (file)
 #include "access/xlog.h"
 #include "lib/dshash.h"
 #include "pgstat.h"
-#include "port/atomics.h"
 #include "storage/fd.h"
 #include "storage/ipc.h"
 #include "storage/lwlock.h"
index 8a3f7d434cfa9f650c283a4e773440bf07926099..36d3adf731099905da06047079a8a5abbe89ccb8 100644 (file)
@@ -20,7 +20,6 @@
 #include "access/twophase_rmgr.h"
 #include "access/xact.h"
 #include "catalog/catalog.h"
-#include "postmaster/autovacuum.h"
 #include "utils/memutils.h"
 #include "utils/pgstat_internal.h"
 #include "utils/rel.h"
index bbf59482be19623e959454079a9a78a9564c0042..d930277140c359472ee602b999e4a32aadb8487d 100644 (file)
@@ -22,7 +22,6 @@
  */
 #include "postgres.h"
 
-#include "port/pg_bitutils.h"
 #include "storage/lmgr.h"      /* for GetLockNameFromTagType */
 #include "storage/lwlock.h"        /* for GetLWLockIdentifier */
 #include "storage/spin.h"
index 6fa6ffb51f50e47d471df5b7ebd0d68c1a1fb6ea..f5927bcc564eb5043519d66580b4dd4a0cd28e7e 100644 (file)
@@ -27,7 +27,6 @@
 #include "utils/float.h"
 #include "utils/fmgrprotos.h"
 #include "utils/sortsupport.h"
-#include "utils/timestamp.h"
 
 
 /*
index 1184cba983af06ef6e96084de77fc2604b8b5da1..ac2145980374216b0059ba2e285c204b760d766a 100644 (file)
@@ -61,7 +61,6 @@
 
 #include "catalog/pg_collation.h"
 #include "catalog/pg_type.h"
-#include "executor/execExpr.h"
 #include "funcapi.h"
 #include "miscadmin.h"
 #include "nodes/miscnodes.h"
@@ -74,7 +73,6 @@
 #include "utils/formatting.h"
 #include "utils/json.h"
 #include "utils/jsonpath.h"
-#include "utils/lsyscache.h"
 #include "utils/memutils.h"
 #include "utils/timestamp.h"
 
index c54b08fe180ba86335f1dab453c5b9b8835585ba..8a45b5827e33c17fd297c6399fe1d73281448725 100644 (file)
@@ -28,7 +28,6 @@
 #include "utils/builtins.h"
 #include "utils/lsyscache.h"
 #include "utils/pg_lsn.h"
-#include "utils/syscache.h"
 
 
 #define CHECK_IS_BINARY_UPGRADE                                    \
index e135c9e5e45f9c766d93d42b73b8b593714e789f..a083ced251ee5ddb9603cfc0582934f16e2fa9b7 100644 (file)
@@ -17,7 +17,7 @@
 #include "storage/proc.h"
 #include "storage/procarray.h"
 #include "utils/array.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/wait_event.h"
 
 #define UINT32_ACCESS_ONCE(var)         ((uint32)(*((volatile uint32 *)&(var))))
index a85e61718645cf8bda5273d188d646a224d3320f..2fc85405b63980d98f25fff62252fa11a6f91ee4 100644 (file)
@@ -20,7 +20,7 @@
 #include "postgres.h"
 
 #include "port/pg_crc32c.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/pg_crc.h"
 #include "varatt.h"
 
index 7c1a7cf889d9c952e58698983c850dbe9bb205a3..deb7d245ef83a37b52c15ef890019c45a63d605a 100644 (file)
  */
 #include "postgres.h"
 
+#include "utils/injection_point.h"
+
+#ifdef USE_INJECTION_POINTS
+
 #include <sys/stat.h>
 
 #include "fmgr.h"
 #include "storage/lwlock.h"
 #include "storage/shmem.h"
 #include "utils/hsearch.h"
-#include "utils/injection_point.h"
 #include "utils/memutils.h"
 
-#ifdef USE_INJECTION_POINTS
-
 /* Field sizes */
 #define INJ_NAME_MAXLEN        64
 #define INJ_LIB_MAXLEN     128
index 2af47e1244faa3b34a98de7745acde3c045f5682..89dd18355ae5e1284d8fd60d3a839225920921fc 100644 (file)
@@ -17,7 +17,6 @@
 #include "common/config_info.h"
 #include "funcapi.h"
 #include "miscadmin.h"
-#include "port.h"
 #include "utils/builtins.h"
 
 Datum