Remove unused #include's from contrib, pl, test .c files
authorPeter Eisentraut <[email protected]>
Mon, 28 Oct 2024 07:02:17 +0000 (08:02 +0100)
committerPeter Eisentraut <[email protected]>
Mon, 28 Oct 2024 07:02:17 +0000 (08:02 +0100)
as determined by IWYU

Similar to commit dbbca2cf299, but for contrib, pl, and src/test/.

Reviewed-by: Alvaro Herrera <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org

93 files changed:
contrib/amcheck/verify_heapam.c
contrib/amcheck/verify_nbtree.c
contrib/auth_delay/auth_delay.c
contrib/auto_explain/auto_explain.c
contrib/basic_archive/basic_archive.c
contrib/bloom/blcost.c
contrib/bloom/blinsert.c
contrib/bloom/blscan.c
contrib/bloom/blutils.c
contrib/bloom/blvacuum.c
contrib/bloom/blvalidate.c
contrib/btree_gin/btree_gin.c
contrib/btree_gist/btree_bit.c
contrib/btree_gist/btree_bool.c
contrib/btree_gist/btree_bytea.c
contrib/btree_gist/btree_date.c
contrib/btree_gist/btree_enum.c
contrib/btree_gist/btree_inet.c
contrib/btree_gist/btree_interval.c
contrib/btree_gist/btree_macaddr.c
contrib/btree_gist/btree_macaddr8.c
contrib/btree_gist/btree_text.c
contrib/btree_gist/btree_time.c
contrib/btree_gist/btree_ts.c
contrib/btree_gist/btree_utils_num.h
contrib/btree_gist/btree_utils_var.c
contrib/btree_gist/btree_utils_var.h
contrib/citext/citext.c
contrib/dict_xsyn/dict_xsyn.c
contrib/fuzzystrmatch/fuzzystrmatch.c
contrib/intarray/_int_bool.c
contrib/intarray/_int_selfuncs.c
contrib/isn/isn.c
contrib/lo/lo.c
contrib/ltree/ltree_io.c
contrib/ltree/ltree_op.c
contrib/pageinspect/brinfuncs.c
contrib/pageinspect/fsmfuncs.c
contrib/pageinspect/ginfuncs.c
contrib/pageinspect/gistfuncs.c
contrib/pageinspect/heapfuncs.c
contrib/pg_freespacemap/pg_freespacemap.c
contrib/pg_prewarm/autoprewarm.c
contrib/pg_stat_statements/pg_stat_statements.c
contrib/pg_surgery/heap_surgery.c
contrib/pg_visibility/pg_visibility.c
contrib/pgcrypto/pgcrypto.c
contrib/pgrowlocks/pgrowlocks.c
contrib/pgstattuple/pgstatapprox.c
contrib/pgstattuple/pgstatindex.c
contrib/pgstattuple/pgstattuple.c
contrib/postgres_fdw/connection.c
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/option.c
contrib/postgres_fdw/postgres_fdw.c
contrib/spi/moddatetime.c
contrib/tablefunc/tablefunc.c
contrib/tablefunc/tablefunc.h[deleted file]
contrib/tsm_system_rows/tsm_system_rows.c
contrib/tsm_system_time/tsm_system_time.c
contrib/unaccent/unaccent.c
contrib/xml2/xpath.c
contrib/xml2/xslt_proc.c
src/pl/plperl/plperl.c
src/pl/plpgsql/src/pl_comp.c
src/pl/plpgsql/src/pl_exec.c
src/pl/plpython/plpy_cursorobject.c
src/pl/plpython/plpy_exec.c
src/pl/plpython/plpy_planobject.c
src/pl/plpython/plpy_plpymodule.c
src/pl/plpython/plpy_procedure.c
src/pl/plpython/plpy_spi.c
src/pl/plpython/plpy_util.c
src/pl/tcl/pltcl.c
src/test/modules/delay_execution/delay_execution.c
src/test/modules/dummy_index_am/dummy_index_am.c
src/test/modules/ldap_password_func/ldap_password_func.c
src/test/modules/libpq_pipeline/libpq_pipeline.c
src/test/modules/plsample/plsample.c
src/test/modules/test_ddl_deparse/test_ddl_deparse.c
src/test/modules/test_integerset/test_integerset.c
src/test/modules/test_oat_hooks/test_oat_hooks.c
src/test/modules/test_radixtree/test_radixtree.c
src/test/modules/test_regex/test_regex.c
src/test/modules/test_resowner/test_resowner_basic.c
src/test/modules/test_resowner/test_resowner_many.c
src/test/modules/test_rls_hooks/test_rls_hooks.c
src/test/modules/test_shm_mq/setup.c
src/test/modules/test_slru/test_multixact.c
src/test/modules/test_tidstore/test_tidstore.c
src/test/modules/worker_spi/worker_spi.c
src/test/regress/pg_regress.c
src/test/regress/regress.c

index f2526ed63a28453e5485f8ef05fb98f37c274500..9c74daaceed1fb4814729516e24ae21c66080625 100644 (file)
 
 #include "access/detoast.h"
 #include "access/genam.h"
-#include "access/heapam.h"
 #include "access/heaptoast.h"
 #include "access/multixact.h"
+#include "access/relation.h"
+#include "access/table.h"
 #include "access/toast_internals.h"
 #include "access/visibilitymap.h"
+#include "access/xact.h"
 #include "catalog/pg_am.h"
+#include "catalog/pg_class.h"
 #include "funcapi.h"
 #include "miscadmin.h"
 #include "storage/bufmgr.h"
 #include "storage/procarray.h"
 #include "utils/builtins.h"
 #include "utils/fmgroids.h"
+#include "utils/rel.h"
 
 PG_FUNCTION_INFO_V1(verify_heapam);
 
index 7cfb136763f6493b62641e2b087e986e53e604d4..8b82797c10faeb6f739a281041a8720160940ae6 100644 (file)
 #include "catalog/index.h"
 #include "catalog/pg_am.h"
 #include "catalog/pg_opfamily_d.h"
-#include "commands/tablecmds.h"
 #include "common/pg_prng.h"
 #include "lib/bloomfilter.h"
 #include "miscadmin.h"
-#include "storage/lmgr.h"
 #include "storage/smgr.h"
 #include "utils/guc.h"
 #include "utils/memutils.h"
index ff0e1fd461bb3320d942b3d114dea55ea1616ce5..e8dfef3290e24ac6edd174391c37d476b66a6c9c 100644 (file)
@@ -14,9 +14,7 @@
 #include <limits.h>
 
 #include "libpq/auth.h"
-#include "port.h"
 #include "utils/guc.h"
-#include "utils/timestamp.h"
 
 PG_MODULE_MAGIC;
 
index 677c135f59bc2d7c5528aba8cf90eaed71fcba16..623a674f99c451f84ddc9861971c3ccacbd93803 100644 (file)
@@ -18,8 +18,6 @@
 #include "commands/explain.h"
 #include "common/pg_prng.h"
 #include "executor/instrument.h"
-#include "jit/jit.h"
-#include "nodes/params.h"
 #include "utils/guc.h"
 
 PG_MODULE_MAGIC;
index 028cf51c25d46f98707b4a391090c7c4b5337bcc..36e2feb4fb866dbc4e25abe8196d227fd29b9cd3 100644 (file)
@@ -36,7 +36,6 @@
 #include "storage/copydir.h"
 #include "storage/fd.h"
 #include "utils/guc.h"
-#include "utils/memutils.h"
 
 PG_MODULE_MAGIC;
 
index 9b629b2c3d57e8c692dd605dd172570d77b98592..0f2cf1546c787b1c2987c2daf77d5ee7edad71b9 100644 (file)
@@ -13,7 +13,6 @@
 #include "postgres.h"
 
 #include "bloom.h"
-#include "fmgr.h"
 #include "utils/selfuncs.h"
 
 /*
index f8a1061abb9ef451598b4b87e9351dfee120509b..dbb79a51eddb6df2f03b40635f188b92908a13d6 100644 (file)
 #include "access/generic_xlog.h"
 #include "access/tableam.h"
 #include "bloom.h"
-#include "catalog/index.h"
 #include "miscadmin.h"
+#include "nodes/execnodes.h"
 #include "storage/bufmgr.h"
-#include "storage/indexfsm.h"
-#include "storage/smgr.h"
 #include "utils/memutils.h"
 #include "utils/rel.h"
 
index 94b6b449c8cfefedfbaa631f90ff3bdfc766a0b2..bf455e579fe85b0eb8d463068dc41b558b098389 100644 (file)
 #include "access/relscan.h"
 #include "bloom.h"
 #include "miscadmin.h"
-#include "pgstat.h"
 #include "storage/bufmgr.h"
-#include "storage/lmgr.h"
-#include "utils/memutils.h"
-#include "utils/rel.h"
 
 /*
  * Begin scan of bloom index.
index a29330afcd399f123065f82f4e05f12b4bdf249c..af10199394a9d7877ec783037ff00f4bbaf8a515 100644 (file)
 #include "access/generic_xlog.h"
 #include "access/reloptions.h"
 #include "bloom.h"
-#include "catalog/index.h"
 #include "commands/vacuum.h"
-#include "miscadmin.h"
 #include "storage/bufmgr.h"
-#include "storage/freespace.h"
 #include "storage/indexfsm.h"
-#include "storage/lmgr.h"
 #include "utils/memutils.h"
+#include "varatt.h"
 
 /* Signature dealing macros - note i is assumed to be of type int */
 #define GETWORD(x,i) ( *( (BloomSignatureWord *)(x) + ( (i) / SIGNWORDBITS ) ) )
index 0998240feaff5b588498c462575267c4868aaf6c..2a268fe0070db7d3fc76c36600d73598db99256e 100644 (file)
 
 #include "access/genam.h"
 #include "bloom.h"
-#include "catalog/storage.h"
 #include "commands/vacuum.h"
-#include "miscadmin.h"
-#include "postmaster/autovacuum.h"
 #include "storage/bufmgr.h"
 #include "storage/indexfsm.h"
-#include "storage/lmgr.h"
 
 
 /*
index 88c5a791975c4cef1782924bc89ab65eb9e989b2..20d3ab9109b510dec7b263170afbbe4b5088f955 100644 (file)
@@ -20,8 +20,6 @@
 #include "catalog/pg_opclass.h"
 #include "catalog/pg_opfamily.h"
 #include "catalog/pg_type.h"
-#include "utils/builtins.h"
-#include "utils/lsyscache.h"
 #include "utils/regproc.h"
 #include "utils/syscache.h"
 
index 5e27906f802b0da0812a6aa1afd6eacf0eaee9ed..533c55e9eaf41d60382810a645f5c9fdbe1992bc 100644 (file)
@@ -7,15 +7,12 @@
 
 #include "access/stratnum.h"
 #include "utils/builtins.h"
-#include "utils/bytea.h"
-#include "utils/cash.h"
 #include "utils/date.h"
 #include "utils/float.h"
 #include "utils/inet.h"
 #include "utils/numeric.h"
 #include "utils/timestamp.h"
 #include "utils/uuid.h"
-#include "utils/varbit.h"
 
 PG_MODULE_MAGIC;
 
index 6790f22b4b6702f47bc907eccdd999f0e78ccf0b..9d5e01a1977208abe84574a57e5bf43e688155ca 100644 (file)
@@ -5,8 +5,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_var.h"
-#include "utils/builtins.h"
-#include "utils/bytea.h"
+#include "utils/fmgrprotos.h"
 #include "utils/varbit.h"
 
 
index 8b2af129b52dc14edb4b913b4ec623b88bdc540a..bdc7834bb6acd266865bd612e2303a99f880a491 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "btree_gist.h"
 #include "btree_utils_num.h"
-#include "common/int.h"
 
 typedef struct boolkey
 {
index 6b005f0157e29b1e0b059ae636a352b0596f3c04..394e40ed16b2a153895abe41f956e2a648deed91 100644 (file)
@@ -5,8 +5,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_var.h"
-#include "utils/builtins.h"
-#include "utils/bytea.h"
+#include "utils/fmgrprotos.h"
 
 
 /*
index 68a4107dbf0858b07ff477d6b437347460ed5af9..5efb5ef96f58d3b32c021da3fdb5d906bf7e276a 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_num.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/date.h"
 
 typedef struct
index d4dc38a38e524002e1cb88447aa21ac2f50ee255..26682122f8ee4a25cc885e188ee2ddc4f3614a3a 100644 (file)
@@ -6,7 +6,7 @@
 #include "btree_gist.h"
 #include "btree_utils_num.h"
 #include "fmgr.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 
 /* enums are really Oids, so we just use the same structure */
 
index 2fb952dca83fbc49d7141eca78fe2bbcbd650dc2..c66ca99e0c3a90d9afb4929043995437133d6ead 100644 (file)
@@ -7,7 +7,6 @@
 #include "btree_utils_num.h"
 #include "catalog/pg_type.h"
 #include "utils/builtins.h"
-#include "utils/inet.h"
 
 typedef struct inetkey
 {
index 156f2cebac5dc061d27f644c33cbd22ccae9dd55..c2f6eede226bd7490f74738b38f1628dba482e8d 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_num.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/timestamp.h"
 
 typedef struct
index 17290529c02fbe320fd57ffb18f33e90776d4894..1367eaba73538b443436178c6112f33fbc81249c 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_num.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/inet.h"
 
 typedef struct
index 796cc4efee3233c4256a2b18b5d1c98e6151f14b..9676e5a15bd116c3938349e449856eacaa4e367f 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_num.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/inet.h"
 
 typedef struct
index be0eac7975b4638b49675b92c1cf6fb452ca202e..28d6b5c9c2bb1d163bdbae7269393b20af575e0f 100644 (file)
@@ -5,7 +5,8 @@
 
 #include "btree_gist.h"
 #include "btree_utils_var.h"
-#include "utils/builtins.h"
+#include "mb/pg_wchar.h"
+#include "utils/fmgrprotos.h"
 
 /*
 ** Text ops
index d89401c0f51e42711c0a94b75badc4be3da83ac2..3034bbb456bc99eecc08e53571a7e7129e9bbcfe 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_num.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/date.h"
 #include "utils/timestamp.h"
 
index 3f5ba91891d803160cafd8f341eda45a00063680..b3cf2d6f60debc61da41f7498c678a86d70d5fe4 100644 (file)
@@ -7,8 +7,8 @@
 
 #include "btree_gist.h"
 #include "btree_utils_num.h"
-#include "utils/builtins.h"
-#include "utils/datetime.h"
+#include "utils/fmgrprotos.h"
+#include "utils/timestamp.h"
 #include "utils/float.h"
 
 typedef struct
index 11e892311eeb3398a30f7082ec3fdeefd066caf3..53e477d8b1e20ace9ec698352eb7e174e6613f8b 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "access/gist.h"
 #include "btree_gist.h"
-#include "utils/rel.h"
 
 typedef char GBT_NUMKEY;
 
index 0c0e952f736214d798bdb929942d948e4a21b449..d9df2356cd1e43f58714505f144c4818374905af 100644 (file)
@@ -9,8 +9,7 @@
 
 #include "btree_gist.h"
 #include "btree_utils_var.h"
-#include "utils/builtins.h"
-#include "utils/pg_locale.h"
+#include "mb/pg_wchar.h"
 #include "utils/rel.h"
 
 /* used for key sorting */
index 2f8def655c8d6744491811d5ff75ce5842a27217..9302d41ced68f6064657825c8e31c2fb60046b17 100644 (file)
@@ -6,7 +6,6 @@
 
 #include "access/gist.h"
 #include "btree_gist.h"
-#include "mb/pg_wchar.h"
 
 /* Variable length key */
 typedef bytea GBT_VARKEY;
index 26af935a70f6f6ccaa5dfbf2fb6fbef478ee91c3..3c461ff2ff2db1542cf7f31a85ebfa6c1a1e766c 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "catalog/pg_collation.h"
 #include "common/hashfn.h"
-#include "utils/builtins.h"
+#include "fmgr.h"
 #include "utils/formatting.h"
 #include "utils/varlena.h"
 #include "varatt.h"
index 62d2d841417ca092a7767acff9e9106ee3697278..3635ed1df84eef1177d3511f388377f470c3c2b4 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "commands/defrem.h"
 #include "tsearch/ts_locale.h"
-#include "tsearch/ts_utils.h"
+#include "tsearch/ts_public.h"
 
 PG_MODULE_MAGIC;
 
index 72ae2ab91b5a9a9dd8248e580fcab90fc3de9aeb..f243e2caed55a52d3ca7c8ab6f7bf80b118890ef 100644 (file)
@@ -40,7 +40,6 @@
 
 #include <ctype.h>
 
-#include "mb/pg_wchar.h"
 #include "utils/builtins.h"
 #include "utils/varlena.h"
 #include "varatt.h"
index 8fc6ad87fc7544b11ab5b10238791e903b9c8781..8cf02c0e5da6b3057897a59c1a880deebc23362b 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "_int.h"
 #include "miscadmin.h"
-#include "utils/builtins.h"
 
 PG_FUNCTION_INFO_V1(bqarr_in);
 PG_FUNCTION_INFO_V1(bqarr_out);
index bc1ad3a80487fffc22b187cd812950ce08efc3ea..99179d0c6fc3ea4ea8952355ea6e950141ab475f 100644 (file)
 #include "catalog/pg_statistic.h"
 #include "catalog/pg_type.h"
 #include "miscadmin.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/lsyscache.h"
 #include "utils/selfuncs.h"
-#include "utils/syscache.h"
 
 PG_FUNCTION_INFO_V1(_int_overlap_sel);
 PG_FUNCTION_INFO_V1(_int_contains_sel);
index 71a543b9478b6ec5c81cc96e85f5704e4c2e1f30..15bcda200c504aeb25d6af3b699c8e92efa429b9 100644 (file)
@@ -21,7 +21,6 @@
 #include "UPC.h"
 #include "fmgr.h"
 #include "isn.h"
-#include "utils/builtins.h"
 
 PG_MODULE_MAGIC;
 
index 457be26c4edfe1446439986b7433552834abc9d4..62488e45f3a3e0d9d08dec1b601679d4654a752d 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "commands/trigger.h"
 #include "executor/spi.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/rel.h"
 
 PG_MODULE_MAGIC;
index 0a12c77a621f8e44f5a28310f70fc145a2c01b3f..11eefc809b2bbf1d2d3299e29b6875623cb3c8a5 100644 (file)
@@ -10,7 +10,6 @@
 #include "crc32.h"
 #include "libpq/pqformat.h"
 #include "ltree.h"
-#include "utils/memutils.h"
 #include "varatt.h"
 
 
index 24a21d3ea0173e03232d6cb03e278f7639c67e95..0e30dee46589ab2fd57cfe8cb46ac71609fb2c3a 100644 (file)
@@ -7,13 +7,11 @@
 
 #include <ctype.h>
 
-#include "access/htup_details.h"
-#include "catalog/pg_statistic.h"
 #include "common/hashfn.h"
 #include "ltree.h"
 #include "utils/builtins.h"
-#include "utils/lsyscache.h"
 #include "utils/selfuncs.h"
+#include "varatt.h"
 
 PG_MODULE_MAGIC;
 
index 5a38d926689d79119b7a016c241a2376dbd7d9ed..22621d584fa688447d128ee057f73b5f425be48d 100644 (file)
@@ -9,20 +9,16 @@
  */
 #include "postgres.h"
 
-#include "access/brin.h"
 #include "access/brin_internal.h"
 #include "access/brin_page.h"
-#include "access/brin_revmap.h"
 #include "access/brin_tuple.h"
 #include "access/htup_details.h"
-#include "catalog/index.h"
 #include "catalog/pg_am_d.h"
 #include "catalog/pg_type.h"
 #include "funcapi.h"
 #include "lib/stringinfo.h"
 #include "miscadmin.h"
 #include "pageinspect.h"
-#include "utils/array.h"
 #include "utils/builtins.h"
 #include "utils/lsyscache.h"
 #include "utils/rel.h"
index f8ae08862445b942cfb508b6b9164819aacf3a54..311821443800ed83dae0addb997fe692c9871b3d 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "postgres.h"
 
-#include "funcapi.h"
+#include "fmgr.h"
 #include "lib/stringinfo.h"
 #include "miscadmin.h"
 #include "pageinspect.h"
index 1dabbdb588972e77659185b1cb93f7b94cb4d307..7182d225d96f0de0218fe3dcbbf845705fe0e06e 100644 (file)
@@ -9,17 +9,14 @@
  */
 #include "postgres.h"
 
-#include "access/gin.h"
 #include "access/gin_private.h"
 #include "access/htup_details.h"
-#include "catalog/namespace.h"
 #include "catalog/pg_type.h"
 #include "funcapi.h"
 #include "miscadmin.h"
 #include "pageinspect.h"
 #include "utils/array.h"
 #include "utils/builtins.h"
-#include "utils/rel.h"
 
 
 PG_FUNCTION_INFO_V1(gin_metapage_info);
index 1cc3b8c9e909c1d0210a4055bab7c0e28438cd04..029072567a4484d2508abcfa74031ba0e216f79b 100644 (file)
 #include "postgres.h"
 
 #include "access/gist.h"
-#include "access/gist_private.h"
 #include "access/htup.h"
 #include "access/relation.h"
-#include "catalog/namespace.h"
 #include "catalog/pg_am_d.h"
 #include "funcapi.h"
 #include "miscadmin.h"
@@ -25,7 +23,6 @@
 #include "utils/pg_lsn.h"
 #include "utils/rel.h"
 #include "utils/ruleutils.h"
-#include "utils/varlena.h"
 
 PG_FUNCTION_INFO_V1(gist_page_opaque_info);
 PG_FUNCTION_INFO_V1(gist_page_items);
index 38a539dad1be01acf145b39bcec765871f230a2a..3dc705e43f7ff1826e92387caaf02e4624bca850 100644 (file)
@@ -32,7 +32,6 @@
 #include "funcapi.h"
 #include "mb/pg_wchar.h"
 #include "miscadmin.h"
-#include "pageinspect.h"
 #include "port/pg_bitutils.h"
 #include "utils/array.h"
 #include "utils/builtins.h"
index b82cab2d97ef4deed9736211398efba47986ad68..565167aaef07889f0cc89eb5f9a4659fcb4f41fc 100644 (file)
@@ -9,7 +9,7 @@
 #include "postgres.h"
 
 #include "access/relation.h"
-#include "funcapi.h"
+#include "fmgr.h"
 #include "storage/freespace.h"
 
 PG_MODULE_MAGIC;
index d061731706ac02390c9620e6138fa38b4821d013..fac4051e1aa452a5e18c24d83c36da6bc30b39d1 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "access/relation.h"
 #include "access/xact.h"
-#include "catalog/pg_class.h"
-#include "catalog/pg_type.h"
 #include "pgstat.h"
 #include "postmaster/bgworker.h"
 #include "postmaster/interrupt.h"
 #include "storage/ipc.h"
 #include "storage/latch.h"
 #include "storage/lwlock.h"
-#include "storage/proc.h"
 #include "storage/procsignal.h"
-#include "storage/shmem.h"
 #include "storage/smgr.h"
 #include "tcop/tcopprot.h"
-#include "utils/acl.h"
-#include "utils/datetime.h"
 #include "utils/guc.h"
-#include "utils/memutils.h"
 #include "utils/rel.h"
 #include "utils/relfilenumbermap.h"
-#include "utils/resowner.h"
+#include "utils/timestamp.h"
 
 #define AUTOPREWARM_FILE "autoprewarm.blocks"
 
index 21b26b7b6ec1d47307fc48780f00322a6a34571d..1798e1d016fe4695de97e4dd852a4dcea94ec19f 100644 (file)
@@ -49,7 +49,6 @@
 
 #include "access/parallel.h"
 #include "catalog/pg_authid.h"
-#include "common/hashfn.h"
 #include "common/int.h"
 #include "executor/instrument.h"
 #include "funcapi.h"
@@ -59,9 +58,7 @@
 #include "nodes/queryjumble.h"
 #include "optimizer/planner.h"
 #include "parser/analyze.h"
-#include "parser/parsetree.h"
 #include "parser/scanner.h"
-#include "parser/scansup.h"
 #include "pgstat.h"
 #include "storage/fd.h"
 #include "storage/ipc.h"
index 37dffe3f7d57ac5211aca901465386fbf3347ad1..1513d76e4b52c186d227e853357478f7e9a59a82 100644 (file)
  */
 #include "postgres.h"
 
-#include "access/heapam.h"
+#include "access/htup_details.h"
+#include "access/relation.h"
 #include "access/visibilitymap.h"
 #include "access/xloginsert.h"
 #include "catalog/pg_am_d.h"
-#include "catalog/pg_proc_d.h"
 #include "miscadmin.h"
 #include "storage/bufmgr.h"
 #include "utils/acl.h"
index 724122b1bc584d157a48cfef3c5508f7e19c7e64..5d0deaba61ee096d33a9ebebb4db1011bcceebc7 100644 (file)
 #include "funcapi.h"
 #include "miscadmin.h"
 #include "storage/bufmgr.h"
-#include "storage/proc.h"
 #include "storage/procarray.h"
 #include "storage/read_stream.h"
 #include "storage/smgr.h"
 #include "utils/rel.h"
-#include "utils/snapmgr.h"
 
 PG_MODULE_MAGIC;
 
index 96447c57577614949cd56bbd31a59fbaf3111139..ebd76eed702e262a1bc399c9da243a02b3f54f9c 100644 (file)
@@ -38,7 +38,6 @@
 #include "px-crypt.h"
 #include "px.h"
 #include "utils/builtins.h"
-#include "utils/uuid.h"
 #include "varatt.h"
 
 PG_MODULE_MAGIC;
index adbc8279c3fdb95383b719da30380d273761a362..7e40ab21ddab06a4fb271616798242daf0a02f1c 100644 (file)
@@ -37,7 +37,7 @@
 #include "storage/bufmgr.h"
 #include "storage/procarray.h"
 #include "utils/acl.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/rel.h"
 #include "utils/snapmgr.h"
 #include "utils/varlena.h"
index 04457f4b790d5456fa82cc7d1dff39e81e40fe02..3a5aad30ae2d9b7ec86405705764c2840f255b31 100644 (file)
 
 #include "access/heapam.h"
 #include "access/htup_details.h"
-#include "access/multixact.h"
 #include "access/relation.h"
-#include "access/transam.h"
 #include "access/visibilitymap.h"
-#include "access/xact.h"
-#include "catalog/namespace.h"
 #include "catalog/pg_am_d.h"
 #include "commands/vacuum.h"
 #include "funcapi.h"
 #include "miscadmin.h"
 #include "storage/bufmgr.h"
 #include "storage/freespace.h"
-#include "storage/lmgr.h"
 #include "storage/procarray.h"
-#include "utils/builtins.h"
 
 PG_FUNCTION_INFO_V1(pgstattuple_approx);
 PG_FUNCTION_INFO_V1(pgstattuple_approx_v1_5);
index 1b6b768cf80e75b5ba1fdc3b7c6d0de6e68a6507..4b9d76ec4e4dff2a7ea9ec07f7dacd4290869ef5 100644 (file)
 #include "access/htup_details.h"
 #include "access/nbtree.h"
 #include "access/relation.h"
-#include "access/table.h"
 #include "catalog/namespace.h"
 #include "catalog/pg_am.h"
 #include "funcapi.h"
 #include "miscadmin.h"
 #include "storage/bufmgr.h"
-#include "storage/lmgr.h"
-#include "utils/builtins.h"
 #include "utils/rel.h"
 #include "utils/varlena.h"
 
index 1fff762753b087cf7a3ecdfa8508896cdb3fafff..48cb8f59c4f347e94f2305f3cf45bf77f3b9a3b6 100644 (file)
@@ -36,7 +36,6 @@
 #include "miscadmin.h"
 #include "storage/bufmgr.h"
 #include "storage/lmgr.h"
-#include "utils/builtins.h"
 #include "utils/varlena.h"
 
 PG_MODULE_MAGIC;
index 2e5303eac12997ca1ff83477345e7c3146c8c007..2326f391d34c38c712636b1a10aed72dd8ef030f 100644 (file)
@@ -16,7 +16,6 @@
 #include <poll.h>
 #endif
 
-#include "access/htup_details.h"
 #include "access/xact.h"
 #include "catalog/pg_user_mapping.h"
 #include "commands/defrem.h"
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "postgres_fdw.h"
-#include "storage/fd.h"
 #include "storage/latch.h"
 #include "utils/builtins.h"
-#include "utils/datetime.h"
 #include "utils/hsearch.h"
 #include "utils/inval.h"
-#include "utils/memutils.h"
 #include "utils/syscache.h"
 
 /*
index fb590c87e67ba063cc122a5dc57656eda9c31ade..4680d517331f7758c771f261af0cebc9caf86bbc 100644 (file)
@@ -47,8 +47,6 @@
 #include "catalog/pg_ts_dict.h"
 #include "catalog/pg_type.h"
 #include "commands/defrem.h"
-#include "commands/tablecmds.h"
-#include "nodes/makefuncs.h"
 #include "nodes/nodeFuncs.h"
 #include "nodes/plannodes.h"
 #include "optimizer/optimizer.h"
index d740893918c2455631604a6c7be66145b9c8ba99..ed11126c09e187a8be880fc0c6367e0e32454306 100644 (file)
@@ -20,7 +20,6 @@
 #include "commands/extension.h"
 #include "libpq/libpq-be.h"
 #include "postgres_fdw.h"
-#include "utils/builtins.h"
 #include "utils/guc.h"
 #include "utils/varlena.h"
 
index adc62576d1fb4643acba3122ce560a3fb9995ce7..53733d642d0a5f1811acc8d1a5ba1a85e06acfa6 100644 (file)
 #include "access/htup_details.h"
 #include "access/sysattr.h"
 #include "access/table.h"
-#include "catalog/pg_class.h"
 #include "catalog/pg_opfamily.h"
 #include "commands/defrem.h"
 #include "commands/explain.h"
-#include "commands/vacuum.h"
 #include "executor/execAsync.h"
 #include "foreign/fdwapi.h"
 #include "funcapi.h"
@@ -29,7 +27,6 @@
 #include "nodes/makefuncs.h"
 #include "nodes/nodeFuncs.h"
 #include "optimizer/appendinfo.h"
-#include "optimizer/clauses.h"
 #include "optimizer/cost.h"
 #include "optimizer/inherit.h"
 #include "optimizer/optimizer.h"
index 3eb7004de97d70d61309831a879a56dba87369f9..5130804ce2a64f14a01fca619521b9417f3bc054 100644 (file)
@@ -19,7 +19,7 @@ OH, me, I'm Terry Mackintosh <[email protected]>
 #include "catalog/pg_type.h"
 #include "commands/trigger.h"
 #include "executor/spi.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/rel.h"
 
 PG_MODULE_MAGIC;
index 2a25607a2adbe92806807aeb0780f399e3fc25ed..4b6ae2fe5c483b28c51fcc527539b490678fefba 100644 (file)
 #include "catalog/pg_type.h"
 #include "common/pg_prng.h"
 #include "executor/spi.h"
+#include "fmgr.h"
 #include "funcapi.h"
 #include "lib/stringinfo.h"
 #include "miscadmin.h"
-#include "tablefunc.h"
 #include "utils/builtins.h"
 
 PG_MODULE_MAGIC;
diff --git a/contrib/tablefunc/tablefunc.h b/contrib/tablefunc/tablefunc.h
deleted file mode 100644 (file)
index 2009382..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * contrib/tablefunc/tablefunc.h
- *
- *
- * tablefunc
- *
- * Sample to demonstrate C functions which return setof scalar
- * and setof composite.
- * Joe Conway <[email protected]>
- * And contributors:
- * Nabil Sayegh <[email protected]>
- *
- * Copyright (c) 2002-2024, PostgreSQL Global Development Group
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose, without fee, and without a written agreement
- * is hereby granted, provided that the above copyright notice and this
- * paragraph and the following two paragraphs appear in all copies.
- *
- * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
- * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
- * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
- * DOCUMENTATION, EVEN IF THE AUTHOR OR DISTRIBUTORS HAVE BEEN ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
- * ON AN "AS IS" BASIS, AND THE AUTHOR AND DISTRIBUTORS HAS NO OBLIGATIONS TO
- * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
- *
- */
-
-#ifndef TABLEFUNC_H
-#define TABLEFUNC_H
-
-#include "fmgr.h"
-
-#endif                         /* TABLEFUNC_H */
index a9f5d657d1ce602c50335e2d78ae21422ce881c4..ecfd1102d7af7fd02fe3d6393271cce16f6afb15 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "postgres.h"
 
-#include "access/relscan.h"
 #include "access/tsmapi.h"
 #include "catalog/pg_type.h"
 #include "miscadmin.h"
index f187fd77655a335bb4defdfca034a9046bae1511..093682a9155f873c583b4adaf5ff957d3c0b24d9 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <math.h>
 
-#include "access/relscan.h"
 #include "access/tsmapi.h"
 #include "catalog/pg_type.h"
 #include "miscadmin.h"
index 707962305f83b5e5161b6763adba652aa09a810c..0217696aac17d5dc16bbf7083086735d8a63443b 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "postgres.h"
 
-#include "catalog/namespace.h"
 #include "catalog/pg_ts_dict.h"
 #include "commands/defrem.h"
 #include "lib/stringinfo.h"
@@ -22,7 +21,6 @@
 #include "tsearch/ts_public.h"
 #include "utils/builtins.h"
 #include "utils/lsyscache.h"
-#include "utils/regproc.h"
 #include "utils/syscache.h"
 
 PG_MODULE_MAGIC;
index ef78aa00c88607d28a7c3d4377b8faaa4a4c9302..f7e3f485fe1f331d7fc6a630ee42a86414850aa0 100644 (file)
@@ -11,7 +11,6 @@
 #include "fmgr.h"
 #include "funcapi.h"
 #include "lib/stringinfo.h"
-#include "miscadmin.h"
 #include "utils/builtins.h"
 #include "utils/xml.h"
 
index e761ca5cb5f29191dde00ebbca7551919e4ae497..b720d89f754ae09c4119dc723899f1a9c6b2732e 100644 (file)
@@ -7,10 +7,7 @@
  */
 #include "postgres.h"
 
-#include "executor/spi.h"
 #include "fmgr.h"
-#include "funcapi.h"
-#include "miscadmin.h"
 #include "utils/builtins.h"
 #include "utils/xml.h"
 
index fe719935c676abb3a1773a8ea583a9f8af3627f3..1b1677e333b919f6741c78856df067910b8a9dcd 100644 (file)
@@ -24,7 +24,6 @@
 #include "executor/spi.h"
 #include "funcapi.h"
 #include "miscadmin.h"
-#include "nodes/makefuncs.h"
 #include "parser/parse_type.h"
 #include "storage/ipc.h"
 #include "tcop/tcopprot.h"
index f1bce708d62d14c19c6c7f0790b55fa38e7f3342..5633e3c7905b836409db11d857cce673c73b995b 100644 (file)
@@ -23,7 +23,7 @@
 #include "catalog/pg_type.h"
 #include "funcapi.h"
 #include "nodes/makefuncs.h"
-#include "parser/parse_type.h"
+#include "parser/parse_node.h"
 #include "plpgsql.h"
 #include "utils/builtins.h"
 #include "utils/fmgroids.h"
@@ -31,7 +31,6 @@
 #include "utils/lsyscache.h"
 #include "utils/memutils.h"
 #include "utils/regproc.h"
-#include "utils/rel.h"
 #include "utils/syscache.h"
 #include "utils/typcache.h"
 
index e69559b980eaa0771874bb9a602a80026e007273..86c5bd324a978367127932275473c5b35696f423 100644 (file)
 
 #include "access/detoast.h"
 #include "access/htup_details.h"
-#include "access/transam.h"
 #include "access/tupconvert.h"
 #include "catalog/pg_proc.h"
 #include "catalog/pg_type.h"
-#include "commands/defrem.h"
 #include "executor/execExpr.h"
 #include "executor/spi.h"
 #include "executor/tstoreReceiver.h"
 #include "optimizer/optimizer.h"
 #include "parser/parse_coerce.h"
 #include "parser/parse_type.h"
-#include "parser/scansup.h"
 #include "plpgsql.h"
 #include "storage/proc.h"
 #include "tcop/cmdtag.h"
 #include "tcop/pquery.h"
-#include "tcop/tcopprot.h"
-#include "tcop/utility.h"
 #include "utils/array.h"
 #include "utils/builtins.h"
 #include "utils/datum.h"
index 24f2ac8c46bee2509f05b2be318ed3412f9ae3cc..6108384c9a50c1b584020a19a55b2943e3323b37 100644 (file)
@@ -8,14 +8,12 @@
 
 #include <limits.h>
 
-#include "access/xact.h"
 #include "catalog/pg_type.h"
 #include "mb/pg_wchar.h"
 #include "plpy_cursorobject.h"
 #include "plpy_elog.h"
 #include "plpy_main.h"
 #include "plpy_planobject.h"
-#include "plpy_procedure.h"
 #include "plpy_resultobject.h"
 #include "plpy_spi.h"
 #include "plpython.h"
index 157229e96f6a32c177ccad9cbcdc943204722b90..9d59473d6adcc9aa0e5ae6100f0a4fd5f3c4f943 100644 (file)
 #include "plpy_procedure.h"
 #include "plpy_subxactobject.h"
 #include "plpython.h"
-#include "utils/builtins.h"
-#include "utils/lsyscache.h"
+#include "utils/fmgrprotos.h"
 #include "utils/rel.h"
-#include "utils/typcache.h"
 
 /* saved state for a set-returning function */
 typedef struct PLySRFState
index ec2439c6a1fac3b6de523b846c69df14f7382517..bbef889329e8854750040548294bc6f18003d7ab 100644 (file)
@@ -7,7 +7,6 @@
 #include "postgres.h"
 
 #include "plpy_cursorobject.h"
-#include "plpy_elog.h"
 #include "plpy_planobject.h"
 #include "plpy_spi.h"
 #include "plpython.h"
index fa08f0dbfb37ab48ea8d8bf69474764145143a74..ea06d9a52b10856bf09df732b5c144cab17ab67e 100644 (file)
@@ -6,11 +6,9 @@
 
 #include "postgres.h"
 
-#include "access/xact.h"
 #include "mb/pg_wchar.h"
 #include "plpy_cursorobject.h"
 #include "plpy_elog.h"
-#include "plpy_main.h"
 #include "plpy_planobject.h"
 #include "plpy_plpymodule.h"
 #include "plpy_resultobject.h"
@@ -18,7 +16,6 @@
 #include "plpy_subxactobject.h"
 #include "plpython.h"
 #include "utils/builtins.h"
-#include "utils/snapmgr.h"
 
 HTAB      *PLy_spi_exceptions = NULL;
 
index ba7786d31c31b86e67c4932cfd3f8c6fdfe01c1b..c35a3b801abbfd7672fd735f2406ff6531cd57f5 100644 (file)
@@ -7,7 +7,6 @@
 #include "postgres.h"
 
 #include "access/htup_details.h"
-#include "access/transam.h"
 #include "catalog/pg_proc.h"
 #include "catalog/pg_type.h"
 #include "funcapi.h"
@@ -17,8 +16,6 @@
 #include "plpython.h"
 #include "utils/builtins.h"
 #include "utils/hsearch.h"
-#include "utils/inval.h"
-#include "utils/lsyscache.h"
 #include "utils/memutils.h"
 #include "utils/syscache.h"
 
index ff87b27de0903f0c989bfe91e0c8a109cc9da644..bcbd07b70ae98d844efe928a7d1cbe0f6b128ac2 100644 (file)
@@ -8,7 +8,6 @@
 
 #include <limits.h>
 
-#include "access/htup_details.h"
 #include "access/xact.h"
 #include "catalog/pg_type.h"
 #include "executor/spi.h"
 #include "plpy_main.h"
 #include "plpy_planobject.h"
 #include "plpy_plpymodule.h"
-#include "plpy_procedure.h"
 #include "plpy_resultobject.h"
 #include "plpy_spi.h"
 #include "plpython.h"
 #include "utils/memutils.h"
-#include "utils/syscache.h"
 
 static PyObject *PLy_spi_execute_query(char *query, long limit);
 static PyObject *PLy_spi_execute_fetch_result(SPITupleTable *tuptable,
index 22e2a599ad968c302e8b4327a76523227dfadadd..6d89b1cb60a659b3f0ec794ec988a8870f315d89 100644 (file)
@@ -10,7 +10,6 @@
 #include "plpy_elog.h"
 #include "plpy_util.h"
 #include "plpython.h"
-#include "utils/memutils.h"
 
 /*
  * Convert a Python unicode object to a Python string/bytes object in
index e2ccaa84f3fed37675308ef1478a7e850067c0b0..80de0db40de11a6c74051937771a8660974ea96c 100644 (file)
 #include "funcapi.h"
 #include "mb/pg_wchar.h"
 #include "miscadmin.h"
-#include "nodes/makefuncs.h"
 #include "parser/parse_func.h"
 #include "parser/parse_type.h"
 #include "pgstat.h"
-#include "tcop/tcopprot.h"
 #include "utils/acl.h"
 #include "utils/builtins.h"
+#include "utils/guc.h"
 #include "utils/lsyscache.h"
 #include "utils/memutils.h"
 #include "utils/regproc.h"
index 155c8a8d556b43bd862c4e347820e2dfbc69831c..fa4693a3f57b1baad0a69335b8a44f231ff0debe 100644 (file)
@@ -23,7 +23,7 @@
 #include <limits.h>
 
 #include "optimizer/planner.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/guc.h"
 #include "utils/inval.h"
 
index 2841cf2eb4bc5a0e63efec9b399477d2a08e094b..beb2c1d2542779d990e2ae1c602f7102f077f205 100644 (file)
@@ -18,8 +18,6 @@
 #include "catalog/index.h"
 #include "commands/vacuum.h"
 #include "nodes/pathnodes.h"
-#include "utils/guc.h"
-#include "utils/rel.h"
 
 PG_MODULE_MAGIC;
 
index 24d9c63781861d6a0353d9eb13d6fc143ef6c334..84057d955aa7a3bf03d4e23c89f0d736e5338de9 100644 (file)
 #include <float.h>
 #include <stdio.h>
 
+#include "fmgr.h"
 #include "libpq/auth.h"
-#include "libpq/libpq.h"
-#include "libpq/libpq-be.h"
-#include "utils/guc.h"
 
 PG_MODULE_MAGIC;
 
index 999a7f57a7efc8624f02dbc5976fcfc241a565c5..1323e4c598d7dc676b3753b9a4e5353ca584fd3f 100644 (file)
 #include <sys/time.h>
 
 #include "catalog/pg_type_d.h"
-#include "common/fe_memutils.h"
 #include "libpq-fe.h"
 #include "pg_getopt.h"
-#include "portability/instr_time.h"
 
 
 static void exit_nicely(PGconn *conn);
index 89ea166a67675498a1dae989e5a4ac3c8a556210..25f7814f1f7ad5cd2931fd3199a9f7ae2b87f385 100644 (file)
@@ -21,7 +21,7 @@
 #include "commands/trigger.h"
 #include "executor/spi.h"
 #include "funcapi.h"
-#include "utils/builtins.h"
+#include "utils/fmgrprotos.h"
 #include "utils/lsyscache.h"
 #include "utils/syscache.h"
 
index 2758ae82d7b4bcc234b3806808ee88514eaeee5b..97cf52d133cc3877dc80f23490c3aa06c0ac4846 100644 (file)
@@ -10,7 +10,6 @@
  */
 #include "postgres.h"
 
-#include "catalog/pg_type.h"
 #include "funcapi.h"
 #include "nodes/execnodes.h"
 #include "tcop/deparse_utility.h"
index 61f8d0b663a9a31fd9a46915a06b7bbe93de510b..73a97b8116747f5f202a98586ea55fefccda1583 100644 (file)
 #include "common/pg_prng.h"
 #include "fmgr.h"
 #include "lib/integerset.h"
-#include "miscadmin.h"
-#include "nodes/bitmapset.h"
-#include "storage/block.h"
-#include "storage/itemptr.h"
 #include "utils/memutils.h"
 #include "utils/timestamp.h"
 
index 05c33712254c752357383b9aa25cd3202583c7f8..ca4aa7e6696c3b6e3a010f0f53ba6e63509e6aa7 100644 (file)
@@ -16,7 +16,6 @@
 #include "access/parallel.h"
 #include "catalog/dependency.h"
 #include "catalog/objectaccess.h"
-#include "catalog/pg_proc.h"
 #include "executor/executor.h"
 #include "fmgr.h"
 #include "miscadmin.h"
index 1d9165a3a234cf42e1530c54f740d2e97576a810..3e072fa5ec6efe4a7e987680f6e6c6458232cad0 100644 (file)
@@ -15,8 +15,6 @@
 #include "common/int.h"
 #include "common/pg_prng.h"
 #include "fmgr.h"
-#include "miscadmin.h"
-#include "storage/lwlock.h"
 #include "utils/memutils.h"
 #include "utils/timestamp.h"
 
index c4ef15d7425bffee40d6f04004d43d326f0b6f91..cd503a2cd8111fa4522fe4405e6b8750cecd5805 100644 (file)
@@ -15,7 +15,6 @@
 #include "postgres.h"
 
 #include "funcapi.h"
-#include "miscadmin.h"
 #include "regex/regex.h"
 #include "utils/array.h"
 #include "utils/builtins.h"
index 558cf1de56ebda0c33a37b40441f8ed0b5a1cb36..1d9c1cd0259fa51dbd69291c1615770cc66120e3 100644 (file)
@@ -13,8 +13,6 @@
 #include "postgres.h"
 
 #include "fmgr.h"
-#include "lib/ilist.h"
-#include "utils/memutils.h"
 #include "utils/resowner.h"
 
 PG_MODULE_MAGIC;
index 7808c9e5df33633c4196e93d38fcbd25a53759bd..4f3f5ebf87e986536f8440eb3bdb4f1049419304 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "fmgr.h"
 #include "lib/ilist.h"
-#include "utils/memutils.h"
 #include "utils/resowner.h"
 
 /*
index 358e28edb4590ce79da90fceddad5df895d43594..d18d5815cfe896c2f51757d803a923b9cb61b362 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "catalog/pg_type.h"
 #include "fmgr.h"
-#include "miscadmin.h"
 #include "nodes/makefuncs.h"
 #include "parser/parse_clause.h"
 #include "parser/parse_collate.h"
index b3dac44d97a80842632463d9343979e0a5b50e78..fb235604394ea79a5b35078f61df17e1f0e0ec7c 100644 (file)
@@ -18,7 +18,6 @@
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "postmaster/bgworker.h"
-#include "storage/procsignal.h"
 #include "storage/shm_toc.h"
 #include "test_shm_mq.h"
 #include "utils/memutils.h"
index 22cc441a3852c8d5ae95d145f2aadce1004aeab0..1cc89aa116c72a6d7c302f6f926bee0f4a890b5f 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "access/multixact.h"
 #include "access/xact.h"
-#include "utils/builtins.h"
+#include "fmgr.h"
 #include "utils/injection_point.h"
 
 PG_FUNCTION_INFO_V1(test_create_multixact);
index 94ddcf1de826ad77144493cd7a0e1fcbd52e577d..6da1cb245273f2988a2f966a4a7f1264e1c7174a 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "access/tidstore.h"
 #include "fmgr.h"
-#include "funcapi.h"
 #include "storage/block.h"
 #include "storage/itemptr.h"
 #include "storage/lwlock.h"
index de8f46902b41dd404d81c0741ced02a4d14749ce..d4403b24d983c6426a4d8728aa45f1c7955ed0b3 100644 (file)
 #include "miscadmin.h"
 #include "postmaster/bgworker.h"
 #include "postmaster/interrupt.h"
-#include "storage/ipc.h"
 #include "storage/latch.h"
-#include "storage/lwlock.h"
-#include "storage/proc.h"
-#include "storage/shmem.h"
 
 /* these headers are used by this particular worker's code */
 #include "access/xact.h"
index 6c188954b142ac4ae29800638b5ea7513db650c7..0e40ed32a21b178968e155bea78239c01c759c22 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "common/logging.h"
 #include "common/restricted_token.h"
-#include "common/string.h"
 #include "common/username.h"
 #include "getopt_long.h"
 #include "lib/stringinfo.h"
index 9e81371be4bf8961b042fd00fb60926a53318ea2..8bae56a9777277a1a608bc6b9403bc3785bc3fde 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "access/detoast.h"
 #include "access/htup_details.h"
-#include "access/transam.h"
-#include "access/xact.h"
 #include "catalog/namespace.h"
 #include "catalog/pg_operator.h"
 #include "catalog/pg_type.h"
@@ -39,7 +37,6 @@
 #include "parser/parse_coerce.h"
 #include "port/atomics.h"
 #include "storage/spin.h"
-#include "utils/array.h"
 #include "utils/builtins.h"
 #include "utils/geo_decls.h"
 #include "utils/memutils.h"