aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/genam.h1
-rw-r--r--src/include/access/gin.h1
-rw-r--r--src/include/access/heapam.h4
-rw-r--r--src/include/access/tuptoaster.h1
-rw-r--r--src/include/access/twophase.h3
-rw-r--r--src/include/access/xact.h3
-rw-r--r--src/include/access/xlog_internal.h4
-rw-r--r--src/include/access/xlogutils.h4
-rw-r--r--src/include/catalog/catalog.h1
-rw-r--r--src/include/catalog/dependency.h1
-rw-r--r--src/include/catalog/pg_db_role_setting.h2
-rw-r--r--src/include/catalog/storage.h3
-rw-r--r--src/include/commands/alter.h1
-rw-r--r--src/include/commands/copy.h2
-rw-r--r--src/include/commands/dbcommands.h1
-rw-r--r--src/include/commands/portalcmds.h2
-rw-r--r--src/include/commands/prepare.h1
-rw-r--r--src/include/commands/seclabel.h2
-rw-r--r--src/include/commands/sequence.h3
-rw-r--r--src/include/commands/tablespace.h1
-rw-r--r--src/include/commands/trigger.h1
-rw-r--r--src/include/executor/execdesc.h2
-rw-r--r--src/include/executor/functions.h1
-rw-r--r--src/include/executor/hashjoin.h1
-rw-r--r--src/include/executor/spi.h3
-rw-r--r--src/include/executor/tuptable.h1
-rw-r--r--src/include/libpq/hba.h1
-rw-r--r--src/include/libpq/ip.h4
-rw-r--r--src/include/nodes/execnodes.h4
-rw-r--r--src/include/nodes/print.h1
-rw-r--r--src/include/nodes/relation.h1
-rw-r--r--src/include/optimizer/geqo_misc.h1
-rw-r--r--src/include/postmaster/autovacuum.h1
-rw-r--r--src/include/replication/walsender.h2
-rw-r--r--src/include/storage/freespace.h1
-rw-r--r--src/include/storage/fsm_internals.h1
-rw-r--r--src/include/storage/procarray.h2
-rw-r--r--src/include/storage/smgr.h2
-rw-r--r--src/include/storage/standby.h2
-rw-r--r--src/include/tcop/pquery.h1
-rw-r--r--src/include/tcop/tcopprot.h2
-rw-r--r--src/include/tsearch/ts_cache.h1
-rw-r--r--src/include/utils/inval.h1
-rw-r--r--src/include/utils/lsyscache.h2
-rw-r--r--src/include/utils/relcache.h1
-rw-r--r--src/include/utils/resowner.h1
-rw-r--r--src/include/utils/snapmgr.h1
47 files changed, 3 insertions, 80 deletions
diff --git a/src/include/access/genam.h b/src/include/access/genam.h
index a95b3d745bc..7154ae385ba 100644
--- a/src/include/access/genam.h
+++ b/src/include/access/genam.h
@@ -17,7 +17,6 @@
#include "access/sdir.h"
#include "access/skey.h"
#include "nodes/tidbitmap.h"
-#include "storage/buf.h"
#include "storage/lock.h"
#include "utils/relcache.h"
#include "utils/snapshot.h"
diff --git a/src/include/access/gin.h b/src/include/access/gin.h
index 31e9733546a..aeba4c1e080 100644
--- a/src/include/access/gin.h
+++ b/src/include/access/gin.h
@@ -11,7 +11,6 @@
#define GIN_H
#include "access/xlog.h"
-#include "storage/block.h"
#include "utils/relcache.h"
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index 56036a83702..b8d06abf1f3 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -14,13 +14,9 @@
#ifndef HEAPAM_H
#define HEAPAM_H
-#include "access/htup.h"
#include "access/sdir.h"
#include "access/skey.h"
#include "access/xlog.h"
-#include "nodes/primnodes.h"
-#include "storage/bufpage.h"
-#include "storage/lock.h"
#include "utils/relcache.h"
#include "utils/snapshot.h"
diff --git a/src/include/access/tuptoaster.h b/src/include/access/tuptoaster.h
index 977e0b47481..1ae44e0e695 100644
--- a/src/include/access/tuptoaster.h
+++ b/src/include/access/tuptoaster.h
@@ -14,7 +14,6 @@
#define TUPTOASTER_H
#include "access/htup.h"
-#include "storage/bufpage.h"
#include "utils/relcache.h"
/*
diff --git a/src/include/access/twophase.h b/src/include/access/twophase.h
index 799bf8bf38e..0019df5f0c0 100644
--- a/src/include/access/twophase.h
+++ b/src/include/access/twophase.h
@@ -14,10 +14,7 @@
#ifndef TWOPHASE_H
#define TWOPHASE_H
-#include "access/xlogdefs.h"
-#include "storage/backendid.h"
#include "storage/proc.h"
-#include "utils/timestamp.h"
/*
* GlobalTransactionData is defined in twophase.c; other places have no
diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index c585752b004..575bcd3cde1 100644
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -15,9 +15,6 @@
#define XACT_H
#include "access/xlog.h"
-#include "nodes/pg_list.h"
-#include "storage/relfilenode.h"
-#include "utils/timestamp.h"
/*
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index 4eaa243948b..097072ced13 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -17,10 +17,6 @@
#define XLOG_INTERNAL_H
#include "access/xlog.h"
-#include "fmgr.h"
-#include "pgtime.h"
-#include "storage/block.h"
-#include "storage/relfilenode.h"
/*
diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h
index bc3db143eb5..5a26d268896 100644
--- a/src/include/access/xlogutils.h
+++ b/src/include/access/xlogutils.h
@@ -11,11 +11,7 @@
#ifndef XLOG_UTILS_H
#define XLOG_UTILS_H
-#include "storage/buf.h"
#include "storage/bufmgr.h"
-#include "storage/relfilenode.h"
-#include "storage/block.h"
-#include "utils/relcache.h"
extern void XLogCheckInvalidPages(void);
diff --git a/src/include/catalog/catalog.h b/src/include/catalog/catalog.h
index e4f1535db3a..1e1e12d36de 100644
--- a/src/include/catalog/catalog.h
+++ b/src/include/catalog/catalog.h
@@ -14,7 +14,6 @@
#ifndef CATALOG_H
#define CATALOG_H
-#include "catalog/catversion.h"
#include "catalog/pg_class.h"
#include "storage/relfilenode.h"
#include "utils/relcache.h"
diff --git a/src/include/catalog/dependency.h b/src/include/catalog/dependency.h
index 5dfb25fee74..5302e50b4e3 100644
--- a/src/include/catalog/dependency.h
+++ b/src/include/catalog/dependency.h
@@ -14,7 +14,6 @@
#ifndef DEPENDENCY_H
#define DEPENDENCY_H
-#include "nodes/parsenodes.h" /* for DropBehavior */
#include "catalog/objectaddress.h"
diff --git a/src/include/catalog/pg_db_role_setting.h b/src/include/catalog/pg_db_role_setting.h
index cda9b72827d..438635c31a4 100644
--- a/src/include/catalog/pg_db_role_setting.h
+++ b/src/include/catalog/pg_db_role_setting.h
@@ -21,8 +21,6 @@
#ifndef PG_DB_ROLE_SETTING_H
#define PG_DB_ROLE_SETTING_H
-#include "catalog/genbki.h"
-#include "nodes/parsenodes.h"
#include "utils/guc.h"
#include "utils/relcache.h"
diff --git a/src/include/catalog/storage.h b/src/include/catalog/storage.h
index 6907d836708..5b4d674e5df 100644
--- a/src/include/catalog/storage.h
+++ b/src/include/catalog/storage.h
@@ -15,9 +15,6 @@
#define STORAGE_H
#include "access/xlog.h"
-#include "lib/stringinfo.h"
-#include "storage/block.h"
-#include "storage/relfilenode.h"
#include "utils/relcache.h"
extern void RelationCreateStorage(RelFileNode rnode, char relpersistence);
diff --git a/src/include/commands/alter.h b/src/include/commands/alter.h
index e942b538af9..6cf9de1eca6 100644
--- a/src/include/commands/alter.h
+++ b/src/include/commands/alter.h
@@ -14,7 +14,6 @@
#ifndef ALTER_H
#define ALTER_H
-#include "nodes/parsenodes.h"
#include "utils/acl.h"
#include "utils/relcache.h"
diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h
index a31479defb5..06337e61149 100644
--- a/src/include/commands/copy.h
+++ b/src/include/commands/copy.h
@@ -15,8 +15,6 @@
#define COPY_H
#include "nodes/execnodes.h"
-#include "nodes/parsenodes.h"
-#include "tcop/dest.h"
/* CopyStateData is private in commands/copy.c */
typedef struct CopyStateData *CopyState;
diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h
index 21dacff39c7..e704380b604 100644
--- a/src/include/commands/dbcommands.h
+++ b/src/include/commands/dbcommands.h
@@ -15,7 +15,6 @@
#define DBCOMMANDS_H
#include "access/xlog.h"
-#include "nodes/parsenodes.h"
/* XLOG stuff */
#define XLOG_DBASE_CREATE 0x00
diff --git a/src/include/commands/portalcmds.h b/src/include/commands/portalcmds.h
index c64aabf0bad..49605da63eb 100644
--- a/src/include/commands/portalcmds.h
+++ b/src/include/commands/portalcmds.h
@@ -14,8 +14,6 @@
#ifndef PORTALCMDS_H
#define PORTALCMDS_H
-#include "nodes/parsenodes.h"
-#include "nodes/plannodes.h"
#include "utils/portal.h"
diff --git a/src/include/commands/prepare.h b/src/include/commands/prepare.h
index 4375fdbafe7..63c06ad8d69 100644
--- a/src/include/commands/prepare.h
+++ b/src/include/commands/prepare.h
@@ -15,7 +15,6 @@
#include "commands/explain.h"
#include "utils/plancache.h"
-#include "utils/timestamp.h"
/*
* The data structure representing a prepared statement. This is now just
diff --git a/src/include/commands/seclabel.h b/src/include/commands/seclabel.h
index 1a0282c8ca7..8c7ecbf76b0 100644
--- a/src/include/commands/seclabel.h
+++ b/src/include/commands/seclabel.h
@@ -10,8 +10,6 @@
#define SECLABEL_H
#include "catalog/objectaddress.h"
-#include "nodes/primnodes.h"
-#include "nodes/parsenodes.h"
/*
* Internal APIs
diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h
index 3f3ba529484..1ef0f91e95a 100644
--- a/src/include/commands/sequence.h
+++ b/src/include/commands/sequence.h
@@ -13,10 +13,7 @@
#ifndef SEQUENCE_H
#define SEQUENCE_H
-#include "nodes/parsenodes.h"
-#include "storage/relfilenode.h"
#include "access/xlog.h"
-#include "fmgr.h"
typedef struct FormData_pg_sequence
diff --git a/src/include/commands/tablespace.h b/src/include/commands/tablespace.h
index 4692098a65f..5b1fb6eddc5 100644
--- a/src/include/commands/tablespace.h
+++ b/src/include/commands/tablespace.h
@@ -15,7 +15,6 @@
#define TABLESPACE_H
#include "access/xlog.h"
-#include "nodes/parsenodes.h"
/* XLOG stuff */
#define XLOG_TBLSPC_CREATE 0x00
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h
index fe21298b648..3ac4a823ec1 100644
--- a/src/include/commands/trigger.h
+++ b/src/include/commands/trigger.h
@@ -14,7 +14,6 @@
#define TRIGGER_H
#include "nodes/execnodes.h"
-#include "nodes/parsenodes.h"
/*
* TriggerData is the node type that is passed as fmgr "context" info
diff --git a/src/include/executor/execdesc.h b/src/include/executor/execdesc.h
index 1a636a09870..1c00b0dd27d 100644
--- a/src/include/executor/execdesc.h
+++ b/src/include/executor/execdesc.h
@@ -16,8 +16,6 @@
#define EXECDESC_H
#include "nodes/execnodes.h"
-#include "nodes/plannodes.h"
-#include "tcop/dest.h"
/* ----------------
diff --git a/src/include/executor/functions.h b/src/include/executor/functions.h
index aaa36c5826d..d565469b267 100644
--- a/src/include/executor/functions.h
+++ b/src/include/executor/functions.h
@@ -15,7 +15,6 @@
#define FUNCTIONS_H
#include "nodes/execnodes.h"
-#include "tcop/dest.h"
/* This struct is known only within executor/functions.c */
typedef struct SQLFunctionParseInfo *SQLFunctionParseInfoPtr;
diff --git a/src/include/executor/hashjoin.h b/src/include/executor/hashjoin.h
index 0c6e06f8ff5..85e595be1b7 100644
--- a/src/include/executor/hashjoin.h
+++ b/src/include/executor/hashjoin.h
@@ -14,7 +14,6 @@
#ifndef HASHJOIN_H
#define HASHJOIN_H
-#include "fmgr.h"
#include "nodes/execnodes.h"
#include "storage/buffile.h"
diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h
index 98d194a37d3..d0c7696d34c 100644
--- a/src/include/executor/spi.h
+++ b/src/include/executor/spi.h
@@ -13,10 +13,7 @@
#ifndef SPI_H
#define SPI_H
-#include "nodes/parsenodes.h"
#include "utils/portal.h"
-#include "utils/relcache.h"
-#include "utils/snapshot.h"
typedef struct SPITupleTable
diff --git a/src/include/executor/tuptable.h b/src/include/executor/tuptable.h
index f774f2d0ab6..69ade2fd4c9 100644
--- a/src/include/executor/tuptable.h
+++ b/src/include/executor/tuptable.h
@@ -15,7 +15,6 @@
#define TUPTABLE_H
#include "access/htup.h"
-#include "access/tupdesc.h"
#include "storage/buf.h"
/*----------
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h
index 1e490441912..c49f30c61d9 100644
--- a/src/include/libpq/hba.h
+++ b/src/include/libpq/hba.h
@@ -12,7 +12,6 @@
#define HBA_H
#include "nodes/pg_list.h"
-#include "libpq/pqcomm.h"
typedef enum UserAuth
diff --git a/src/include/libpq/ip.h b/src/include/libpq/ip.h
index 149c1ff9b48..0b5d2e364f6 100644
--- a/src/include/libpq/ip.h
+++ b/src/include/libpq/ip.h
@@ -15,8 +15,8 @@
#ifndef IP_H
#define IP_H
-#include "getaddrinfo.h"
-#include "libpq/pqcomm.h"
+#include "getaddrinfo.h" /* pgrminclude ignore */
+#include "libpq/pqcomm.h" /* pgrminclude ignore */
#ifdef HAVE_UNIX_SOCKETS
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 6ed739c290c..b3eed7d189c 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -16,13 +16,9 @@
#include "access/genam.h"
#include "access/heapam.h"
-#include "access/skey.h"
#include "nodes/params.h"
#include "nodes/plannodes.h"
-#include "nodes/tidbitmap.h"
-#include "utils/hsearch.h"
#include "utils/reltrigger.h"
-#include "utils/snapshot.h"
#include "utils/tuplestore.h"
diff --git a/src/include/nodes/print.h b/src/include/nodes/print.h
index 3b87e181bd1..8bac7b024b9 100644
--- a/src/include/nodes/print.h
+++ b/src/include/nodes/print.h
@@ -14,7 +14,6 @@
#ifndef PRINT_H
#define PRINT_H
-#include "nodes/parsenodes.h"
#include "executor/tuptable.h"
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h
index f6592697e44..722567df5c0 100644
--- a/src/include/nodes/relation.h
+++ b/src/include/nodes/relation.h
@@ -15,7 +15,6 @@
#define RELATION_H
#include "access/sdir.h"
-#include "nodes/bitmapset.h"
#include "nodes/params.h"
#include "nodes/parsenodes.h"
#include "storage/block.h"
diff --git a/src/include/optimizer/geqo_misc.h b/src/include/optimizer/geqo_misc.h
index 83d80671f34..fcafbcd515c 100644
--- a/src/include/optimizer/geqo_misc.h
+++ b/src/include/optimizer/geqo_misc.h
@@ -22,7 +22,6 @@
#ifndef GEQO_MISC_H
#define GEQO_MISC_H
-#include "optimizer/geqo.h"
#include "optimizer/geqo_recombination.h"
#ifdef GEQO_DEBUG
diff --git a/src/include/postmaster/autovacuum.h b/src/include/postmaster/autovacuum.h
index cf82363ce76..682cabe2c6d 100644
--- a/src/include/postmaster/autovacuum.h
+++ b/src/include/postmaster/autovacuum.h
@@ -14,7 +14,6 @@
#ifndef AUTOVACUUM_H
#define AUTOVACUUM_H
-#include "storage/lock.h"
/* GUC variables */
extern bool autovacuum_start_daemon;
diff --git a/src/include/replication/walsender.h b/src/include/replication/walsender.h
index 876d2aa61f9..465072d17ae 100644
--- a/src/include/replication/walsender.h
+++ b/src/include/replication/walsender.h
@@ -16,9 +16,9 @@
#include "nodes/nodes.h"
#include "storage/latch.h"
#include "replication/syncrep.h"
+#include "storage/shmem.h"
#include "storage/spin.h"
-
typedef enum WalSndState
{
WALSNDSTATE_STARTUP = 0,
diff --git a/src/include/storage/freespace.h b/src/include/storage/freespace.h
index 1c15db8f101..54dc6499a3d 100644
--- a/src/include/storage/freespace.h
+++ b/src/include/storage/freespace.h
@@ -15,7 +15,6 @@
#define FREESPACE_H_
#include "storage/block.h"
-#include "storage/bufpage.h"
#include "storage/relfilenode.h"
#include "utils/relcache.h"
diff --git a/src/include/storage/fsm_internals.h b/src/include/storage/fsm_internals.h
index 4508b7c9c62..8b5a2dbc1b6 100644
--- a/src/include/storage/fsm_internals.h
+++ b/src/include/storage/fsm_internals.h
@@ -16,7 +16,6 @@
#include "storage/buf.h"
#include "storage/bufpage.h"
-#include "lib/stringinfo.h"
/*
* Structure of a FSM page. See src/backend/storage/freespace/README for
diff --git a/src/include/storage/procarray.h b/src/include/storage/procarray.h
index 3c20fc48f67..a11d4385b7d 100644
--- a/src/include/storage/procarray.h
+++ b/src/include/storage/procarray.h
@@ -14,8 +14,6 @@
#ifndef PROCARRAY_H
#define PROCARRAY_H
-#include "storage/lock.h"
-#include "storage/procsignal.h"
#include "storage/standby.h"
#include "utils/snapshot.h"
diff --git a/src/include/storage/smgr.h b/src/include/storage/smgr.h
index e4792668c27..96d0642a0ac 100644
--- a/src/include/storage/smgr.h
+++ b/src/include/storage/smgr.h
@@ -14,9 +14,7 @@
#ifndef SMGR_H
#define SMGR_H
-#include "access/xlog.h"
#include "fmgr.h"
-#include "storage/backendid.h"
#include "storage/block.h"
#include "storage/relfilenode.h"
diff --git a/src/include/storage/standby.h b/src/include/storage/standby.h
index 6ebac62db54..d2e3e92d19c 100644
--- a/src/include/storage/standby.h
+++ b/src/include/storage/standby.h
@@ -15,9 +15,7 @@
#define STANDBY_H
#include "access/xlog.h"
-#include "storage/lock.h"
#include "storage/procsignal.h"
-#include "storage/relfilenode.h"
/* User-settable GUC parameters */
extern int vacuum_defer_cleanup_age;
diff --git a/src/include/tcop/pquery.h b/src/include/tcop/pquery.h
index 2a5e871c92a..018577ecadc 100644
--- a/src/include/tcop/pquery.h
+++ b/src/include/tcop/pquery.h
@@ -14,7 +14,6 @@
#ifndef PQUERY_H
#define PQUERY_H
-#include "nodes/parsenodes.h"
#include "utils/portal.h"
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h
index d5192d98558..898c7326816 100644
--- a/src/include/tcop/tcopprot.h
+++ b/src/include/tcop/tcopprot.h
@@ -20,9 +20,7 @@
#define TCOPPROT_H
#include "executor/execdesc.h"
-#include "nodes/parsenodes.h"
#include "storage/procsignal.h"
-#include "utils/guc.h"
/* Required daylight between max_stack_depth and the kernel limit, in bytes */
diff --git a/src/include/tsearch/ts_cache.h b/src/include/tsearch/ts_cache.h
index 01550eddfe3..84e451ce6d8 100644
--- a/src/include/tsearch/ts_cache.h
+++ b/src/include/tsearch/ts_cache.h
@@ -13,7 +13,6 @@
#ifndef TS_CACHE_H
#define TS_CACHE_H
-#include "fmgr.h"
#include "utils/guc.h"
diff --git a/src/include/utils/inval.h b/src/include/utils/inval.h
index 606b778f10e..fbcddbc245e 100644
--- a/src/include/utils/inval.h
+++ b/src/include/utils/inval.h
@@ -15,7 +15,6 @@
#define INVAL_H
#include "access/htup.h"
-#include "storage/relfilenode.h"
#include "utils/relcache.h"
diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h
index f4490adc318..215951589af 100644
--- a/src/include/utils/lsyscache.h
+++ b/src/include/utils/lsyscache.h
@@ -13,9 +13,7 @@
#ifndef LSYSCACHE_H
#define LSYSCACHE_H
-#include "access/attnum.h"
#include "access/htup.h"
-#include "nodes/pg_list.h"
/* Result list element for get_op_btree_interpretation */
typedef struct OpBtreeInterpretation
diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h
index fc49ee3acc0..9aaf9695f53 100644
--- a/src/include/utils/relcache.h
+++ b/src/include/utils/relcache.h
@@ -16,7 +16,6 @@
#include "access/tupdesc.h"
#include "nodes/bitmapset.h"
-#include "nodes/pg_list.h"
typedef struct RelationData *Relation;
diff --git a/src/include/utils/resowner.h b/src/include/utils/resowner.h
index 2d08312b34f..cff0ac8b495 100644
--- a/src/include/utils/resowner.h
+++ b/src/include/utils/resowner.h
@@ -19,7 +19,6 @@
#ifndef RESOWNER_H
#define RESOWNER_H
-#include "storage/buf.h"
#include "storage/fd.h"
#include "utils/catcache.h"
#include "utils/plancache.h"
diff --git a/src/include/utils/snapmgr.h b/src/include/utils/snapmgr.h
index a7e7d3dc2be..c969a377961 100644
--- a/src/include/utils/snapmgr.h
+++ b/src/include/utils/snapmgr.h
@@ -14,7 +14,6 @@
#define SNAPMGR_H
#include "utils/resowner.h"
-#include "utils/snapshot.h"
extern bool FirstSnapshotSet;