Commit e0487223 authored by Amit Kapila's avatar Amit Kapila

Make the order of the header file includes consistent.

Similar to commits 14aec035, 7e735035 and dddf4cdc, this commit
makes the order of header file inclusion consistent in more places.

Author: Vignesh C
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
parent 2aa84520
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include "access/generic_xlog.h" #include "access/generic_xlog.h"
#include "access/itup.h" #include "access/itup.h"
#include "access/xlog.h" #include "access/xlog.h"
#include "nodes/pathnodes.h"
#include "fmgr.h" #include "fmgr.h"
#include "nodes/pathnodes.h"
/* Support procedures numbers */ /* Support procedures numbers */
#define BLOOM_HASH_PROC 1 #define BLOOM_HASH_PROC 1
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
#ifndef __BTREE_GIST_H__ #ifndef __BTREE_GIST_H__
#define __BTREE_GIST_H__ #define __BTREE_GIST_H__
#include "fmgr.h"
#include "access/nbtree.h" #include "access/nbtree.h"
#include "fmgr.h"
#define BtreeGistNotEqualStrategyNumber 6 #define BtreeGistNotEqualStrategyNumber 6
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
#ifndef __BTREE_UTILS_NUM_H__ #ifndef __BTREE_UTILS_NUM_H__
#define __BTREE_UTILS_NUM_H__ #define __BTREE_UTILS_NUM_H__
#include "btree_gist.h"
#include "access/gist.h"
#include "utils/rel.h"
#include <math.h> #include <math.h>
#include <float.h> #include <float.h>
#include "access/gist.h"
#include "btree_gist.h"
#include "utils/rel.h"
typedef char GBT_NUMKEY; typedef char GBT_NUMKEY;
/* Better readable key */ /* Better readable key */
......
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
#ifndef __BTREE_UTILS_VAR_H__ #ifndef __BTREE_UTILS_VAR_H__
#define __BTREE_UTILS_VAR_H__ #define __BTREE_UTILS_VAR_H__
#include "btree_gist.h"
#include "access/gist.h" #include "access/gist.h"
#include "btree_gist.h"
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
/* Variable length key */ /* Variable length key */
......
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
#include "foreign/foreign.h" #include "foreign/foreign.h"
#include "lib/stringinfo.h" #include "lib/stringinfo.h"
#include "libpq-fe.h"
#include "nodes/pathnodes.h" #include "nodes/pathnodes.h"
#include "utils/relcache.h" #include "utils/relcache.h"
#include "libpq-fe.h"
/* /*
* FDW-specific planner information kept in RelOptInfo.fdw_private for a * FDW-specific planner information kept in RelOptInfo.fdw_private for a
* postgres_fdw foreign table. For a baserel, this struct is created by * postgres_fdw foreign table. For a baserel, this struct is created by
......
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
#include "utils/memutils.h" #include "utils/memutils.h"
#include "utils/timestamp.h" #include "utils/timestamp.h"
/*---------------------------------------------------------------- /*----------------------------------------------------------------
* Global authentication functions * Global authentication functions
*---------------------------------------------------------------- *----------------------------------------------------------------
......
...@@ -12,11 +12,10 @@ ...@@ -12,11 +12,10 @@
#ifndef RECEIVELOG_H #ifndef RECEIVELOG_H
#define RECEIVELOG_H #define RECEIVELOG_H
#include "access/xlogdefs.h"
#include "libpq-fe.h" #include "libpq-fe.h"
#include "walmethods.h" #include "walmethods.h"
#include "access/xlogdefs.h"
/* /*
* Called before trying to read more data or when a segment is * Called before trying to read more data or when a segment is
* finished. Return true to stop streaming. * finished. Return true to stop streaming.
......
...@@ -12,10 +12,9 @@ ...@@ -12,10 +12,9 @@
#ifndef STREAMUTIL_H #ifndef STREAMUTIL_H
#define STREAMUTIL_H #define STREAMUTIL_H
#include "libpq-fe.h"
#include "access/xlogdefs.h" #include "access/xlogdefs.h"
#include "datatype/timestamp.h" #include "datatype/timestamp.h"
#include "libpq-fe.h"
extern const char *progname; extern const char *progname;
extern char *connection_string; extern char *connection_string;
......
...@@ -24,12 +24,10 @@ ...@@ -24,12 +24,10 @@
#ifndef __PG_BACKUP_ARCHIVE__ #ifndef __PG_BACKUP_ARCHIVE__
#define __PG_BACKUP_ARCHIVE__ #define __PG_BACKUP_ARCHIVE__
#include <time.h> #include <time.h>
#include "pg_backup.h"
#include "libpq-fe.h" #include "libpq-fe.h"
#include "pg_backup.h"
#include "pqexpbuffer.h" #include "pqexpbuffer.h"
#define LOBBUFSIZE 16384 #define LOBBUFSIZE 16384
......
...@@ -9,9 +9,8 @@ ...@@ -9,9 +9,8 @@
#ifndef DATAPAGEMAP_H #ifndef DATAPAGEMAP_H
#define DATAPAGEMAP_H #define DATAPAGEMAP_H
#include "storage/relfilenode.h"
#include "storage/block.h" #include "storage/block.h"
#include "storage/relfilenode.h"
struct datapagemap struct datapagemap
{ {
......
...@@ -8,10 +8,9 @@ ...@@ -8,10 +8,9 @@
#ifndef FILEMAP_H #ifndef FILEMAP_H
#define FILEMAP_H #define FILEMAP_H
#include "storage/relfilenode.h"
#include "storage/block.h"
#include "datapagemap.h" #include "datapagemap.h"
#include "storage/block.h"
#include "storage/relfilenode.h"
/* /*
* For every file found in the local or remote system, we have a file entry * For every file found in the local or remote system, we have a file entry
......
...@@ -11,15 +11,13 @@ ...@@ -11,15 +11,13 @@
#ifndef PG_REWIND_H #ifndef PG_REWIND_H
#define PG_REWIND_H #define PG_REWIND_H
#include "datapagemap.h"
#include "access/timeline.h" #include "access/timeline.h"
#include "common/logging.h" #include "common/logging.h"
#include "datapagemap.h"
#include "libpq-fe.h" #include "libpq-fe.h"
#include "storage/block.h" #include "storage/block.h"
#include "storage/relfilenode.h" #include "storage/relfilenode.h"
/* Configuration options */ /* Configuration options */
extern char *datadir_target; extern char *datadir_target;
extern char *datadir_source; extern char *datadir_source;
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include "access/transam.h"
#include "access/xlog_internal.h" #include "access/xlog_internal.h"
#include "access/xlogreader.h" #include "access/xlogreader.h"
#include "access/xlogrecord.h" #include "access/xlogrecord.h"
#include "access/transam.h"
#include "common/fe_memutils.h" #include "common/fe_memutils.h"
#include "common/logging.h" #include "common/logging.h"
#include "getopt_long.h" #include "getopt_long.h"
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
* src/bin/psql/command.c * src/bin/psql/command.c
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
#include "command.h"
#include <ctype.h> #include <ctype.h>
#include <time.h> #include <time.h>
...@@ -24,22 +23,21 @@ ...@@ -24,22 +23,21 @@
#endif #endif
#include "catalog/pg_class_d.h" #include "catalog/pg_class_d.h"
#include "portability/instr_time.h" #include "command.h"
#include "libpq-fe.h"
#include "pqexpbuffer.h"
#include "common/logging.h"
#include "fe_utils/print.h"
#include "fe_utils/string_utils.h"
#include "common.h" #include "common.h"
#include "common/logging.h"
#include "copy.h" #include "copy.h"
#include "crosstabview.h" #include "crosstabview.h"
#include "describe.h" #include "describe.h"
#include "fe_utils/print.h"
#include "fe_utils/string_utils.h"
#include "help.h" #include "help.h"
#include "input.h" #include "input.h"
#include "large_obj.h" #include "large_obj.h"
#include "libpq-fe.h"
#include "mainloop.h" #include "mainloop.h"
#include "portability/instr_time.h"
#include "pqexpbuffer.h"
#include "psqlscanslash.h" #include "psqlscanslash.h"
#include "settings.h" #include "settings.h"
#include "variables.h" #include "variables.h"
......
...@@ -8,10 +8,9 @@ ...@@ -8,10 +8,9 @@
#ifndef COMMAND_H #ifndef COMMAND_H
#define COMMAND_H #define COMMAND_H
#include "fe_utils/conditional.h"
#include "fe_utils/print.h" #include "fe_utils/print.h"
#include "fe_utils/psqlscan.h" #include "fe_utils/psqlscan.h"
#include "fe_utils/conditional.h"
typedef enum _backslashResult typedef enum _backslashResult
{ {
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
#include <setjmp.h> #include <setjmp.h>
#include "libpq-fe.h"
#include "fe_utils/print.h" #include "fe_utils/print.h"
#include "fe_utils/psqlscan.h" #include "fe_utils/psqlscan.h"
#include "libpq-fe.h"
extern bool openQueryOutputFile(const char *fname, FILE **fout, bool *is_pipe); extern bool openQueryOutputFile(const char *fname, FILE **fout, bool *is_pipe);
extern bool setQFout(const char *fname); extern bool setQFout(const char *fname);
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
#ifndef PROMPT_H #ifndef PROMPT_H
#define PROMPT_H #define PROMPT_H
#include "fe_utils/conditional.h"
/* enum promptStatus_t is now defined by psqlscan.h */ /* enum promptStatus_t is now defined by psqlscan.h */
#include "fe_utils/psqlscan.h" #include "fe_utils/psqlscan.h"
#include "fe_utils/conditional.h"
char *get_prompt(promptStatus_t status, ConditionalStack cstack); char *get_prompt(promptStatus_t status, ConditionalStack cstack);
......
...@@ -8,9 +8,8 @@ ...@@ -8,9 +8,8 @@
#ifndef SETTINGS_H #ifndef SETTINGS_H
#define SETTINGS_H #define SETTINGS_H
#include "variables.h"
#include "fe_utils/print.h" #include "fe_utils/print.h"
#include "variables.h"
#define DEFAULT_CSV_FIELD_SEP ',' #define DEFAULT_CSV_FIELD_SEP ','
#define DEFAULT_FIELD_SEP "|" #define DEFAULT_FIELD_SEP "|"
......
...@@ -33,8 +33,9 @@ ...@@ -33,8 +33,9 @@
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
#include "tab-complete.h"
#include "input.h" #include "input.h"
#include "tab-complete.h"
/* If we don't have this, we might as well forget about the whole thing: */ /* If we don't have this, we might as well forget about the whole thing: */
#ifdef USE_READLINE #ifdef USE_READLINE
...@@ -43,10 +44,9 @@ ...@@ -43,10 +44,9 @@
#include "catalog/pg_am_d.h" #include "catalog/pg_am_d.h"
#include "catalog/pg_class_d.h" #include "catalog/pg_class_d.h"
#include "common.h"
#include "libpq-fe.h" #include "libpq-fe.h"
#include "pqexpbuffer.h" #include "pqexpbuffer.h"
#include "common.h"
#include "settings.h" #include "settings.h"
#include "stringutils.h" #include "stringutils.h"
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#define COMMON_H #define COMMON_H
#include "common/username.h" #include "common/username.h"
#include "libpq-fe.h"
#include "getopt_long.h" /* pgrminclude ignore */ #include "getopt_long.h" /* pgrminclude ignore */
#include "libpq-fe.h"
#include "pqexpbuffer.h" /* pgrminclude ignore */ #include "pqexpbuffer.h" /* pgrminclude ignore */
enum trivalue enum trivalue
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include "access/itup.h" #include "access/itup.h"
#include "catalog/pg_am_d.h" #include "catalog/pg_am_d.h"
#include "fmgr.h" #include "fmgr.h"
#include "storage/bufmgr.h"
#include "lib/rbtree.h" #include "lib/rbtree.h"
#include "storage/bufmgr.h"
/* /*
* Storage type for GIN's reloptions * Storage type for GIN's reloptions
......
...@@ -15,9 +15,8 @@ ...@@ -15,9 +15,8 @@
#define HIO_H #define HIO_H
#include "access/htup.h" #include "access/htup.h"
#include "utils/relcache.h"
#include "storage/buf.h" #include "storage/buf.h"
#include "utils/relcache.h"
/* /*
* state for bulk inserts --- private to heapam.c and hio.c * state for bulk inserts --- private to heapam.c and hio.c
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#define HTUP_DETAILS_H #define HTUP_DETAILS_H
#include "access/htup.h" #include "access/htup.h"
#include "access/transam.h"
#include "access/tupdesc.h" #include "access/tupdesc.h"
#include "access/tupmacs.h" #include "access/tupmacs.h"
#include "access/transam.h"
#include "storage/bufpage.h" #include "storage/bufpage.h"
/* /*
......
...@@ -15,9 +15,8 @@ ...@@ -15,9 +15,8 @@
#define ACCESS_RELATION_H #define ACCESS_RELATION_H
#include "nodes/primnodes.h" #include "nodes/primnodes.h"
#include "utils/relcache.h"
#include "storage/lockdefs.h" #include "storage/lockdefs.h"
#include "utils/relcache.h"
extern Relation relation_open(Oid relationId, LOCKMODE lockmode); extern Relation relation_open(Oid relationId, LOCKMODE lockmode);
extern Relation try_relation_open(Oid relationId, LOCKMODE lockmode); extern Relation try_relation_open(Oid relationId, LOCKMODE lockmode);
......
...@@ -15,9 +15,8 @@ ...@@ -15,9 +15,8 @@
#define TABLE_H #define TABLE_H
#include "nodes/primnodes.h" #include "nodes/primnodes.h"
#include "utils/relcache.h"
#include "storage/lockdefs.h" #include "storage/lockdefs.h"
#include "utils/relcache.h"
extern Relation table_open(Oid relationId, LOCKMODE lockmode); extern Relation table_open(Oid relationId, LOCKMODE lockmode);
extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode); extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode);
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#ifndef TWOPHASE_H #ifndef TWOPHASE_H
#define TWOPHASE_H #define TWOPHASE_H
#include "access/xlogdefs.h"
#include "access/xact.h" #include "access/xact.h"
#include "access/xlogdefs.h"
#include "datatype/timestamp.h" #include "datatype/timestamp.h"
#include "storage/lock.h" #include "storage/lock.h"
......
...@@ -18,10 +18,9 @@ ...@@ -18,10 +18,9 @@
#ifndef PG_CONSTRAINT_H #ifndef PG_CONSTRAINT_H
#define PG_CONSTRAINT_H #define PG_CONSTRAINT_H
#include "catalog/dependency.h"
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_constraint_d.h" #include "catalog/pg_constraint_d.h"
#include "catalog/dependency.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
/* ---------------- /* ----------------
......
...@@ -18,9 +18,8 @@ ...@@ -18,9 +18,8 @@
#define PG_CONVERSION_H #define PG_CONVERSION_H
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_conversion_d.h"
#include "catalog/objectaddress.h" #include "catalog/objectaddress.h"
#include "catalog/pg_conversion_d.h"
/* ---------------- /* ----------------
* pg_conversion definition. cpp turns this into * pg_conversion definition. cpp turns this into
......
...@@ -19,9 +19,8 @@ ...@@ -19,9 +19,8 @@
#define PG_OPERATOR_H #define PG_OPERATOR_H
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_operator_d.h"
#include "catalog/objectaddress.h" #include "catalog/objectaddress.h"
#include "catalog/pg_operator_d.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
/* ---------------- /* ----------------
......
...@@ -18,9 +18,8 @@ ...@@ -18,9 +18,8 @@
#define PG_PROC_H #define PG_PROC_H
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_proc_d.h"
#include "catalog/objectaddress.h" #include "catalog/objectaddress.h"
#include "catalog/pg_proc_d.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
/* ---------------- /* ----------------
......
...@@ -18,9 +18,8 @@ ...@@ -18,9 +18,8 @@
#define PG_PUBLICATION_H #define PG_PUBLICATION_H
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_publication_d.h"
#include "catalog/objectaddress.h" #include "catalog/objectaddress.h"
#include "catalog/pg_publication_d.h"
/* ---------------- /* ----------------
* pg_publication definition. cpp turns this into * pg_publication definition. cpp turns this into
......
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
#ifndef PG_REPLICATION_ORIGIN_H #ifndef PG_REPLICATION_ORIGIN_H
#define PG_REPLICATION_ORIGIN_H #define PG_REPLICATION_ORIGIN_H
#include "access/xlogdefs.h"
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_replication_origin_d.h" #include "catalog/pg_replication_origin_d.h"
#include "access/xlogdefs.h"
/* ---------------- /* ----------------
* pg_replication_origin. cpp turns this into * pg_replication_origin. cpp turns this into
* typedef struct FormData_pg_replication_origin * typedef struct FormData_pg_replication_origin
......
...@@ -18,10 +18,9 @@ ...@@ -18,10 +18,9 @@
#ifndef PG_SUBSCRIPTION_REL_H #ifndef PG_SUBSCRIPTION_REL_H
#define PG_SUBSCRIPTION_REL_H #define PG_SUBSCRIPTION_REL_H
#include "access/xlogdefs.h"
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_subscription_rel_d.h" #include "catalog/pg_subscription_rel_d.h"
#include "access/xlogdefs.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
/* ---------------- /* ----------------
......
...@@ -19,9 +19,8 @@ ...@@ -19,9 +19,8 @@
#define PG_TYPE_H #define PG_TYPE_H
#include "catalog/genbki.h" #include "catalog/genbki.h"
#include "catalog/pg_type_d.h"
#include "catalog/objectaddress.h" #include "catalog/objectaddress.h"
#include "catalog/pg_type_d.h"
#include "nodes/nodes.h" #include "nodes/nodes.h"
/* ---------------- /* ----------------
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include "catalog/objectaddress.h" #include "catalog/objectaddress.h"
#include "catalog/pg_event_trigger.h" #include "catalog/pg_event_trigger.h"
#include "nodes/parsenodes.h" #include "nodes/parsenodes.h"
#include "utils/aclchk_internal.h"
#include "tcop/deparse_utility.h" #include "tcop/deparse_utility.h"
#include "utils/aclchk_internal.h"
typedef struct EventTriggerData typedef struct EventTriggerData
{ {
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#ifndef NODEBITMAPHEAPSCAN_H #ifndef NODEBITMAPHEAPSCAN_H
#define NODEBITMAPHEAPSCAN_H #define NODEBITMAPHEAPSCAN_H
#include "nodes/execnodes.h"
#include "access/parallel.h" #include "access/parallel.h"
#include "nodes/execnodes.h"
extern BitmapHeapScanState *ExecInitBitmapHeapScan(BitmapHeapScan *node, EState *estate, int eflags); extern BitmapHeapScanState *ExecInitBitmapHeapScan(BitmapHeapScan *node, EState *estate, int eflags);
extern void ExecEndBitmapHeapScan(BitmapHeapScanState *node); extern void ExecEndBitmapHeapScan(BitmapHeapScanState *node);
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#ifndef NODEINDEXONLYSCAN_H #ifndef NODEINDEXONLYSCAN_H
#define NODEINDEXONLYSCAN_H #define NODEINDEXONLYSCAN_H
#include "nodes/execnodes.h"
#include "access/parallel.h" #include "access/parallel.h"
#include "nodes/execnodes.h"
extern IndexOnlyScanState *ExecInitIndexOnlyScan(IndexOnlyScan *node, EState *estate, int eflags); extern IndexOnlyScanState *ExecInitIndexOnlyScan(IndexOnlyScan *node, EState *estate, int eflags);
extern void ExecEndIndexOnlyScan(IndexOnlyScanState *node); extern void ExecEndIndexOnlyScan(IndexOnlyScanState *node);
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#define TUPTABLE_H #define TUPTABLE_H
#include "access/htup.h" #include "access/htup.h"
#include "access/htup_details.h"
#include "access/sysattr.h" #include "access/sysattr.h"
#include "access/tupdesc.h" #include "access/tupdesc.h"
#include "access/htup_details.h"
#include "storage/buf.h" #include "storage/buf.h"
/*---------- /*----------
......
...@@ -17,11 +17,10 @@ ...@@ -17,11 +17,10 @@
#ifndef FUNCAPI_H #ifndef FUNCAPI_H
#define FUNCAPI_H #define FUNCAPI_H
#include "fmgr.h"
#include "access/tupdesc.h" #include "access/tupdesc.h"
#include "executor/executor.h" #include "executor/executor.h"
#include "executor/tuptable.h" #include "executor/tuptable.h"
#include "fmgr.h"
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* Support to ease writing Functions returning composite types * Support to ease writing Functions returning composite types
......
...@@ -30,12 +30,10 @@ extern "C" ...@@ -30,12 +30,10 @@ extern "C"
{ {
#endif #endif
#include "access/tupdesc.h"
#include "fmgr.h" #include "fmgr.h"
#include "jit/jit.h" #include "jit/jit.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
#include "access/tupdesc.h"
typedef struct LLVMJitContext typedef struct LLVMJitContext
{ {
......
...@@ -20,18 +20,17 @@ ...@@ -20,18 +20,17 @@
#include "lib/pairingheap.h" #include "lib/pairingheap.h"
#include "nodes/params.h" #include "nodes/params.h"
#include "nodes/plannodes.h" #include "nodes/plannodes.h"
#include "nodes/tidbitmap.h"
#include "partitioning/partdefs.h" #include "partitioning/partdefs.h"
#include "storage/condition_variable.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
#include "utils/queryenvironment.h" #include "utils/queryenvironment.h"
#include "utils/reltrigger.h" #include "utils/reltrigger.h"
#include "utils/sharedtuplestore.h" #include "utils/sharedtuplestore.h"
#include "utils/snapshot.h" #include "utils/snapshot.h"
#include "utils/sortsupport.h" #include "utils/sortsupport.h"
#include "utils/tuplestore.h"
#include "utils/tuplesort.h" #include "utils/tuplesort.h"
#include "nodes/tidbitmap.h" #include "utils/tuplestore.h"
#include "storage/condition_variable.h"
struct PlanState; /* forward references in this file */ struct PlanState; /* forward references in this file */
struct PartitionRoutingInfo; struct PartitionRoutingInfo;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "access/xlogreader.h" #include "access/xlogreader.h"
#include "access/xlogrecord.h" #include "access/xlogrecord.h"
#include "replication/reorderbuffer.h"
#include "replication/logical.h" #include "replication/logical.h"
#include "replication/reorderbuffer.h"
void LogicalDecodingProcessRecord(LogicalDecodingContext *ctx, void LogicalDecodingProcessRecord(LogicalDecodingContext *ctx,
XLogReaderState *record); XLogReaderState *record);
......
...@@ -9,11 +9,10 @@ ...@@ -9,11 +9,10 @@
#ifndef LOGICAL_H #ifndef LOGICAL_H
#define LOGICAL_H #define LOGICAL_H
#include "replication/slot.h"
#include "access/xlog.h" #include "access/xlog.h"
#include "access/xlogreader.h" #include "access/xlogreader.h"
#include "replication/output_plugin.h" #include "replication/output_plugin.h"
#include "replication/slot.h"
struct LogicalDecodingContext; struct LogicalDecodingContext;
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
#include "access/xlog.h" #include "access/xlog.h"
#include "access/xlogdefs.h" #include "access/xlogdefs.h"
#include "getaddrinfo.h" /* for NI_MAXHOST */ #include "getaddrinfo.h" /* for NI_MAXHOST */
#include "pgtime.h"
#include "replication/logicalproto.h" #include "replication/logicalproto.h"
#include "replication/walsender.h" #include "replication/walsender.h"
#include "storage/latch.h" #include "storage/latch.h"
#include "storage/spin.h" #include "storage/spin.h"
#include "pgtime.h"
#include "utils/tuplestore.h" #include "utils/tuplestore.h"
/* user-settable parameters */ /* user-settable parameters */
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#ifndef REWRITEHANDLER_H #ifndef REWRITEHANDLER_H
#define REWRITEHANDLER_H #define REWRITEHANDLER_H
#include "utils/relcache.h"
#include "nodes/parsenodes.h" #include "nodes/parsenodes.h"
#include "utils/relcache.h"
extern List *QueryRewrite(Query *parsetree); extern List *QueryRewrite(Query *parsetree);
extern void AcquireRewriteLocks(Query *parsetree, extern void AcquireRewriteLocks(Query *parsetree,
......
...@@ -14,9 +14,8 @@ ...@@ -14,9 +14,8 @@
#ifndef EXTENDED_STATS_INTERNAL_H #ifndef EXTENDED_STATS_INTERNAL_H
#define EXTENDED_STATS_INTERNAL_H #define EXTENDED_STATS_INTERNAL_H
#include "utils/sortsupport.h"
#include "statistics/statistics.h" #include "statistics/statistics.h"
#include "utils/sortsupport.h"
typedef struct typedef struct
{ {
......
...@@ -15,17 +15,16 @@ ...@@ -15,17 +15,16 @@
#ifndef BUFMGR_INTERNALS_H #ifndef BUFMGR_INTERNALS_H
#define BUFMGR_INTERNALS_H #define BUFMGR_INTERNALS_H
#include "port/atomics.h"
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/bufmgr.h" #include "storage/bufmgr.h"
#include "storage/latch.h" #include "storage/latch.h"
#include "storage/lwlock.h" #include "storage/lwlock.h"
#include "storage/shmem.h" #include "storage/shmem.h"
#include "storage/smgr.h" #include "storage/smgr.h"
#include "port/atomics.h"
#include "storage/spin.h" #include "storage/spin.h"
#include "utils/relcache.h" #include "utils/relcache.h"
/* /*
* Buffer state is a single 32-bit variable where following data is combined. * Buffer state is a single 32-bit variable where following data is combined.
* *
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#ifndef CONDITION_VARIABLE_H #ifndef CONDITION_VARIABLE_H
#define CONDITION_VARIABLE_H #define CONDITION_VARIABLE_H
#include "storage/s_lock.h"
#include "storage/proclist_types.h" #include "storage/proclist_types.h"
#include "storage/s_lock.h"
typedef struct typedef struct
{ {
......
...@@ -18,12 +18,11 @@ ...@@ -18,12 +18,11 @@
#error "lock.h may not be included from frontend code" #error "lock.h may not be included from frontend code"
#endif #endif
#include "storage/lockdefs.h"
#include "storage/backendid.h" #include "storage/backendid.h"
#include "storage/lockdefs.h"
#include "storage/lwlock.h" #include "storage/lwlock.h"
#include "storage/shmem.h" #include "storage/shmem.h"
/* struct PGPROC is declared in proc.h, but must forward-reference it */ /* struct PGPROC is declared in proc.h, but must forward-reference it */
typedef struct PGPROC PGPROC; typedef struct PGPROC PGPROC;
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#error "lwlock.h may not be included from frontend code" #error "lwlock.h may not be included from frontend code"
#endif #endif
#include "port/atomics.h"
#include "storage/proclist_types.h" #include "storage/proclist_types.h"
#include "storage/s_lock.h" #include "storage/s_lock.h"
#include "port/atomics.h"
struct PGPROC; struct PGPROC;
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
#ifndef STANDBY_H #ifndef STANDBY_H
#define STANDBY_H #define STANDBY_H
#include "storage/standbydefs.h"
#include "storage/lock.h" #include "storage/lock.h"
#include "storage/procsignal.h" #include "storage/procsignal.h"
#include "storage/relfilenode.h" #include "storage/relfilenode.h"
#include "storage/standbydefs.h"
/* User-settable GUC parameters */ /* User-settable GUC parameters */
extern int vacuum_defer_cleanup_age; extern int vacuum_defer_cleanup_age;
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#include "utils/pg_locale.h"
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
#include "utils/pg_locale.h"
/* /*
* towlower() and friends should be in <wctype.h>, but some pre-C99 systems * towlower() and friends should be in <wctype.h>, but some pre-C99 systems
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include <math.h> #include <math.h>
#include "datatype/timestamp.h"
#include "fmgr.h" #include "fmgr.h"
#include "pgtime.h" #include "pgtime.h"
#include "datatype/timestamp.h"
typedef int32 DateADT; typedef int32 DateADT;
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#define JSONPATH_H #define JSONPATH_H
#include "fmgr.h" #include "fmgr.h"
#include "utils/jsonb.h"
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
#include "utils/jsonb.h"
typedef struct typedef struct
{ {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#ifndef PG_LSN_H #ifndef PG_LSN_H
#define PG_LSN_H #define PG_LSN_H
#include "fmgr.h"
#include "access/xlogdefs.h" #include "access/xlogdefs.h"
#include "fmgr.h"
#define DatumGetLSN(X) ((XLogRecPtr) DatumGetInt64(X)) #define DatumGetLSN(X) ((XLogRecPtr) DatumGetInt64(X))
#define LSNGetDatum(X) (Int64GetDatum((int64) (X))) #define LSNGetDatum(X) (Int64GetDatum((int64) (X)))
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
#ifndef XML_H #ifndef XML_H
#define XML_H #define XML_H
#include "executor/tablefunc.h"
#include "fmgr.h" #include "fmgr.h"
#include "nodes/execnodes.h" #include "nodes/execnodes.h"
#include "nodes/primnodes.h" #include "nodes/primnodes.h"
#include "executor/tablefunc.h"
typedef struct varlena xmltype; typedef struct varlena xmltype;
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
#include "ecpglib.h" #include "ecpglib.h"
#include "ecpglib_extern.h" #include "ecpglib_extern.h"
#include "ecpgtype.h" #include "ecpgtype.h"
#include "sql3types.h"
#include "sqlca.h" #include "sqlca.h"
#include "sqlda.h" #include "sqlda.h"
#include "sql3types.h"
static void descriptor_free(struct descriptor *desc); static void descriptor_free(struct descriptor *desc);
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
#ifndef _ECPG_ECPGLIB_EXTERN_H #ifndef _ECPG_ECPGLIB_EXTERN_H
#define _ECPG_ECPGLIB_EXTERN_H #define _ECPG_ECPGLIB_EXTERN_H
#include "ecpg_config.h"
#include "ecpgtype.h"
#include "libpq-fe.h" #include "libpq-fe.h"
#include "sqlca.h" #include "sqlca.h"
#include "sqlda-native.h"
#include "sqlda-compat.h" #include "sqlda-compat.h"
#include "ecpg_config.h" #include "sqlda-native.h"
#include "ecpgtype.h"
#ifndef CHAR_BIT #ifndef CHAR_BIT
#include <limits.h> #include <limits.h>
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
#include "ecpglib.h" #include "ecpglib.h"
#include "ecpglib_extern.h" #include "ecpglib_extern.h"
#include "ecpgtype.h" #include "ecpgtype.h"
#include "pg_config_paths.h"
#include "pgtypes_date.h" #include "pgtypes_date.h"
#include "pgtypes_interval.h" #include "pgtypes_interval.h"
#include "pgtypes_numeric.h" #include "pgtypes_numeric.h"
#include "pgtypes_timestamp.h" #include "pgtypes_timestamp.h"
#include "pg_config_paths.h"
#include "sqlca.h" #include "sqlca.h"
#ifndef LONG_LONG_MIN #ifndef LONG_LONG_MIN
......
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
#ifndef _ECPGLIB_H #ifndef _ECPGLIB_H
#define _ECPGLIB_H #define _ECPGLIB_H
#include "libpq-fe.h" #include <string.h>
#include "ecpg_config.h" #include "ecpg_config.h"
#include "ecpgtype.h" #include "ecpgtype.h"
#include "libpq-fe.h"
#include "sqlca.h" #include "sqlca.h"
#include <string.h>
/* /*
* This is a small extract from c.h since we don't want to leak all postgres * This is a small extract from c.h since we don't want to leak all postgres
......
...@@ -3,9 +3,8 @@ ...@@ -3,9 +3,8 @@
#ifndef _ECPG_PREPROC_EXTERN_H #ifndef _ECPG_PREPROC_EXTERN_H
#define _ECPG_PREPROC_EXTERN_H #define _ECPG_PREPROC_EXTERN_H
#include "type.h"
#include "common/keywords.h" #include "common/keywords.h"
#include "type.h"
#ifndef CHAR_BIT #ifndef CHAR_BIT
#include <limits.h> #include <limits.h>
......
...@@ -44,11 +44,10 @@ ...@@ -44,11 +44,10 @@
#define TEXTDOMAIN PG_TEXTDOMAIN("plperl") #define TEXTDOMAIN PG_TEXTDOMAIN("plperl")
/* perl stuff */ /* perl stuff */
#include "plperl.h"
#include "plperl_helpers.h"
/* string literal macros defining chunks of perl code */ /* string literal macros defining chunks of perl code */
#include "perlchunks.h" #include "perlchunks.h"
#include "plperl.h"
#include "plperl_helpers.h"
/* defines PLPERL_SET_OPMASK */ /* defines PLPERL_SET_OPMASK */
#include "plperl_opmask.h" #include "plperl_opmask.h"
......
...@@ -11,19 +11,15 @@ ...@@ -11,19 +11,15 @@
#include "access/xact.h" #include "access/xact.h"
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
#include "utils/memutils.h"
#include "plpython.h"
#include "plpy_cursorobject.h" #include "plpy_cursorobject.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_main.h" #include "plpy_main.h"
#include "plpy_planobject.h" #include "plpy_planobject.h"
#include "plpy_procedure.h" #include "plpy_procedure.h"
#include "plpy_resultobject.h" #include "plpy_resultobject.h"
#include "plpy_spi.h" #include "plpy_spi.h"
#include "plpython.h"
#include "utils/memutils.h"
static PyObject *PLy_cursor_query(const char *query); static PyObject *PLy_cursor_query(const char *query);
static void PLy_cursor_dealloc(PyObject *arg); static void PLy_cursor_dealloc(PyObject *arg);
......
...@@ -7,14 +7,10 @@ ...@@ -7,14 +7,10 @@
#include "postgres.h" #include "postgres.h"
#include "lib/stringinfo.h" #include "lib/stringinfo.h"
#include "plpython.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_main.h" #include "plpy_main.h"
#include "plpy_procedure.h" #include "plpy_procedure.h"
#include "plpython.h"
PyObject *PLy_exc_error = NULL; PyObject *PLy_exc_error = NULL;
PyObject *PLy_exc_fatal = NULL; PyObject *PLy_exc_fatal = NULL;
......
...@@ -12,20 +12,16 @@ ...@@ -12,20 +12,16 @@
#include "commands/trigger.h" #include "commands/trigger.h"
#include "executor/spi.h" #include "executor/spi.h"
#include "funcapi.h" #include "funcapi.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include "utils/rel.h"
#include "utils/typcache.h"
#include "plpython.h"
#include "plpy_exec.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_exec.h"
#include "plpy_main.h" #include "plpy_main.h"
#include "plpy_procedure.h" #include "plpy_procedure.h"
#include "plpy_subxactobject.h" #include "plpy_subxactobject.h"
#include "plpython.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include "utils/rel.h"
#include "utils/typcache.h"
/* saved state for a set-returning function */ /* saved state for a set-returning function */
typedef struct PLySRFState typedef struct PLySRFState
......
...@@ -12,21 +12,17 @@ ...@@ -12,21 +12,17 @@
#include "commands/trigger.h" #include "commands/trigger.h"
#include "executor/spi.h" #include "executor/spi.h"
#include "miscadmin.h" #include "miscadmin.h"
#include "utils/guc.h"
#include "utils/memutils.h"
#include "utils/rel.h"
#include "utils/syscache.h"
#include "plpython.h"
#include "plpy_main.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_exec.h" #include "plpy_exec.h"
#include "plpy_main.h"
#include "plpy_plpymodule.h" #include "plpy_plpymodule.h"
#include "plpy_procedure.h" #include "plpy_procedure.h"
#include "plpy_subxactobject.h" #include "plpy_subxactobject.h"
#include "plpython.h"
#include "utils/guc.h"
#include "utils/memutils.h"
#include "utils/rel.h"
#include "utils/syscache.h"
/* /*
* exported functions * exported functions
......
...@@ -6,16 +6,13 @@ ...@@ -6,16 +6,13 @@
#include "postgres.h" #include "postgres.h"
#include "plpython.h"
#include "plpy_planobject.h"
#include "plpy_cursorobject.h" #include "plpy_cursorobject.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_planobject.h"
#include "plpy_spi.h" #include "plpy_spi.h"
#include "plpython.h"
#include "utils/memutils.h" #include "utils/memutils.h"
static void PLy_plan_dealloc(PyObject *arg); static void PLy_plan_dealloc(PyObject *arg);
static PyObject *PLy_plan_cursor(PyObject *self, PyObject *args); static PyObject *PLy_plan_cursor(PyObject *self, PyObject *args);
static PyObject *PLy_plan_execute(PyObject *self, PyObject *args); static PyObject *PLy_plan_execute(PyObject *self, PyObject *args);
......
...@@ -8,21 +8,17 @@ ...@@ -8,21 +8,17 @@
#include "access/xact.h" #include "access/xact.h"
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
#include "utils/builtins.h"
#include "utils/snapmgr.h"
#include "plpython.h"
#include "plpy_plpymodule.h"
#include "plpy_cursorobject.h" #include "plpy_cursorobject.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_main.h" #include "plpy_main.h"
#include "plpy_planobject.h" #include "plpy_planobject.h"
#include "plpy_plpymodule.h"
#include "plpy_resultobject.h" #include "plpy_resultobject.h"
#include "plpy_spi.h" #include "plpy_spi.h"
#include "plpy_subxactobject.h" #include "plpy_subxactobject.h"
#include "plpython.h"
#include "utils/builtins.h"
#include "utils/snapmgr.h"
HTAB *PLy_spi_exceptions = NULL; HTAB *PLy_spi_exceptions = NULL;
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
#include "funcapi.h" #include "funcapi.h"
#include "catalog/pg_proc.h" #include "catalog/pg_proc.h"
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "plpy_elog.h"
#include "plpy_main.h"
#include "plpy_procedure.h"
#include "plpython.h"
#include "utils/builtins.h" #include "utils/builtins.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
#include "utils/inval.h" #include "utils/inval.h"
...@@ -18,14 +22,6 @@ ...@@ -18,14 +22,6 @@
#include "utils/memutils.h" #include "utils/memutils.h"
#include "utils/syscache.h" #include "utils/syscache.h"
#include "plpython.h"
#include "plpy_procedure.h"
#include "plpy_elog.h"
#include "plpy_main.h"
static HTAB *PLy_procedure_cache = NULL; static HTAB *PLy_procedure_cache = NULL;
static PLyProcedure *PLy_procedure_create(HeapTuple procTup, Oid fn_oid, bool is_trigger); static PLyProcedure *PLy_procedure_create(HeapTuple procTup, Oid fn_oid, bool is_trigger);
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
#include "postgres.h" #include "postgres.h"
#include "plpython.h"
#include "plpy_resultobject.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_resultobject.h"
#include "plpython.h"
static void PLy_result_dealloc(PyObject *arg); static void PLy_result_dealloc(PyObject *arg);
static PyObject *PLy_result_colnames(PyObject *self, PyObject *unused); static PyObject *PLy_result_colnames(PyObject *self, PyObject *unused);
......
...@@ -14,20 +14,16 @@ ...@@ -14,20 +14,16 @@
#include "executor/spi.h" #include "executor/spi.h"
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
#include "parser/parse_type.h" #include "parser/parse_type.h"
#include "utils/memutils.h"
#include "utils/syscache.h"
#include "plpython.h"
#include "plpy_spi.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_main.h" #include "plpy_main.h"
#include "plpy_planobject.h" #include "plpy_planobject.h"
#include "plpy_plpymodule.h" #include "plpy_plpymodule.h"
#include "plpy_procedure.h" #include "plpy_procedure.h"
#include "plpy_resultobject.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_query(char *query, long limit);
static PyObject *PLy_spi_execute_fetch_result(SPITupleTable *tuptable, static PyObject *PLy_spi_execute_fetch_result(SPITupleTable *tuptable,
......
...@@ -5,9 +5,8 @@ ...@@ -5,9 +5,8 @@
#ifndef PLPY_SPI_H #ifndef PLPY_SPI_H
#define PLPY_SPI_H #define PLPY_SPI_H
#include "utils/resowner.h"
#include "plpython.h" #include "plpython.h"
#include "utils/resowner.h"
extern PyObject *PLy_spi_prepare(PyObject *self, PyObject *args); extern PyObject *PLy_spi_prepare(PyObject *self, PyObject *args);
extern PyObject *PLy_spi_execute(PyObject *self, PyObject *args); extern PyObject *PLy_spi_execute(PyObject *self, PyObject *args);
......
...@@ -7,14 +7,10 @@ ...@@ -7,14 +7,10 @@
#include "postgres.h" #include "postgres.h"
#include "access/xact.h" #include "access/xact.h"
#include "utils/memutils.h"
#include "plpython.h"
#include "plpy_subxactobject.h"
#include "plpy_elog.h" #include "plpy_elog.h"
#include "plpy_subxactobject.h"
#include "plpython.h"
#include "utils/memutils.h"
List *explicit_subtransactions = NIL; List *explicit_subtransactions = NIL;
......
...@@ -6,9 +6,8 @@ ...@@ -6,9 +6,8 @@
#define PLPY_SUBXACTOBJECT #define PLPY_SUBXACTOBJECT
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
#include "utils/resowner.h"
#include "plpython.h" #include "plpython.h"
#include "utils/resowner.h"
/* a list of nested explicit subtransactions */ /* a list of nested explicit subtransactions */
extern List *explicit_subtransactions; extern List *explicit_subtransactions;
......
...@@ -11,20 +11,16 @@ ...@@ -11,20 +11,16 @@
#include "funcapi.h" #include "funcapi.h"
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
#include "miscadmin.h" #include "miscadmin.h"
#include "plpy_elog.h"
#include "plpy_main.h"
#include "plpy_typeio.h"
#include "plpython.h"
#include "utils/array.h" #include "utils/array.h"
#include "utils/builtins.h" #include "utils/builtins.h"
#include "utils/fmgroids.h" #include "utils/fmgroids.h"
#include "utils/lsyscache.h" #include "utils/lsyscache.h"
#include "utils/memutils.h" #include "utils/memutils.h"
#include "plpython.h"
#include "plpy_typeio.h"
#include "plpy_elog.h"
#include "plpy_main.h"
/* conversion from Datums to Python objects */ /* conversion from Datums to Python objects */
static PyObject *PLyBool_FromBool(PLyDatumToOb *arg, Datum d); static PyObject *PLyBool_FromBool(PLyDatumToOb *arg, Datum d);
static PyObject *PLyFloat_FromFloat4(PLyDatumToOb *arg, Datum d); static PyObject *PLyFloat_FromFloat4(PLyDatumToOb *arg, Datum d);
......
...@@ -7,9 +7,8 @@ ...@@ -7,9 +7,8 @@
#include "access/htup.h" #include "access/htup.h"
#include "fmgr.h" #include "fmgr.h"
#include "utils/typcache.h"
#include "plpython.h" #include "plpython.h"
#include "utils/typcache.h"
struct PLyProcedure; /* avoid requiring plpy_procedure.h here */ struct PLyProcedure; /* avoid requiring plpy_procedure.h here */
......
...@@ -7,14 +7,10 @@ ...@@ -7,14 +7,10 @@
#include "postgres.h" #include "postgres.h"
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
#include "utils/memutils.h"
#include "plpython.h"
#include "plpy_util.h"
#include "plpy_elog.h" #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 * Convert a Python unicode object to a Python string/bytes object in
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
*/ */
#include "postgres.h" #include "postgres.h"
#include "access/ginblock.h"
#include "access/gin_private.h" #include "access/gin_private.h"
#include "access/ginblock.h"
#include "access/htup_details.h" #include "access/htup_details.h"
#include "fmgr.h" #include "fmgr.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment