mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Remove unused #include's from contrib, pl, test .c files
as determined by IWYU
Similar to commit dbbca2cf29
, but for contrib, pl, and src/test/.
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org
This commit is contained in:
@ -12,18 +12,22 @@
|
|||||||
|
|
||||||
#include "access/detoast.h"
|
#include "access/detoast.h"
|
||||||
#include "access/genam.h"
|
#include "access/genam.h"
|
||||||
#include "access/heapam.h"
|
|
||||||
#include "access/heaptoast.h"
|
#include "access/heaptoast.h"
|
||||||
#include "access/multixact.h"
|
#include "access/multixact.h"
|
||||||
|
#include "access/relation.h"
|
||||||
|
#include "access/table.h"
|
||||||
#include "access/toast_internals.h"
|
#include "access/toast_internals.h"
|
||||||
#include "access/visibilitymap.h"
|
#include "access/visibilitymap.h"
|
||||||
|
#include "access/xact.h"
|
||||||
#include "catalog/pg_am.h"
|
#include "catalog/pg_am.h"
|
||||||
|
#include "catalog/pg_class.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/procarray.h"
|
#include "storage/procarray.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/fmgroids.h"
|
#include "utils/fmgroids.h"
|
||||||
|
#include "utils/rel.h"
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(verify_heapam);
|
PG_FUNCTION_INFO_V1(verify_heapam);
|
||||||
|
|
||||||
|
@ -33,11 +33,9 @@
|
|||||||
#include "catalog/index.h"
|
#include "catalog/index.h"
|
||||||
#include "catalog/pg_am.h"
|
#include "catalog/pg_am.h"
|
||||||
#include "catalog/pg_opfamily_d.h"
|
#include "catalog/pg_opfamily_d.h"
|
||||||
#include "commands/tablecmds.h"
|
|
||||||
#include "common/pg_prng.h"
|
#include "common/pg_prng.h"
|
||||||
#include "lib/bloomfilter.h"
|
#include "lib/bloomfilter.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/lmgr.h"
|
|
||||||
#include "storage/smgr.h"
|
#include "storage/smgr.h"
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
@ -14,9 +14,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#include "libpq/auth.h"
|
#include "libpq/auth.h"
|
||||||
#include "port.h"
|
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
#include "utils/timestamp.h"
|
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
#include "commands/explain.h"
|
#include "commands/explain.h"
|
||||||
#include "common/pg_prng.h"
|
#include "common/pg_prng.h"
|
||||||
#include "executor/instrument.h"
|
#include "executor/instrument.h"
|
||||||
#include "jit/jit.h"
|
|
||||||
#include "nodes/params.h"
|
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "storage/copydir.h"
|
#include "storage/copydir.h"
|
||||||
#include "storage/fd.h"
|
#include "storage/fd.h"
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
#include "utils/memutils.h"
|
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "bloom.h"
|
#include "bloom.h"
|
||||||
#include "fmgr.h"
|
|
||||||
#include "utils/selfuncs.h"
|
#include "utils/selfuncs.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -16,11 +16,9 @@
|
|||||||
#include "access/generic_xlog.h"
|
#include "access/generic_xlog.h"
|
||||||
#include "access/tableam.h"
|
#include "access/tableam.h"
|
||||||
#include "bloom.h"
|
#include "bloom.h"
|
||||||
#include "catalog/index.h"
|
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
|
#include "nodes/execnodes.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/indexfsm.h"
|
|
||||||
#include "storage/smgr.h"
|
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
|
|
||||||
|
@ -15,11 +15,7 @@
|
|||||||
#include "access/relscan.h"
|
#include "access/relscan.h"
|
||||||
#include "bloom.h"
|
#include "bloom.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pgstat.h"
|
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/lmgr.h"
|
|
||||||
#include "utils/memutils.h"
|
|
||||||
#include "utils/rel.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Begin scan of bloom index.
|
* Begin scan of bloom index.
|
||||||
|
@ -17,14 +17,11 @@
|
|||||||
#include "access/generic_xlog.h"
|
#include "access/generic_xlog.h"
|
||||||
#include "access/reloptions.h"
|
#include "access/reloptions.h"
|
||||||
#include "bloom.h"
|
#include "bloom.h"
|
||||||
#include "catalog/index.h"
|
|
||||||
#include "commands/vacuum.h"
|
#include "commands/vacuum.h"
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/freespace.h"
|
|
||||||
#include "storage/indexfsm.h"
|
#include "storage/indexfsm.h"
|
||||||
#include "storage/lmgr.h"
|
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
#include "varatt.h"
|
||||||
|
|
||||||
/* Signature dealing macros - note i is assumed to be of type int */
|
/* Signature dealing macros - note i is assumed to be of type int */
|
||||||
#define GETWORD(x,i) ( *( (BloomSignatureWord *)(x) + ( (i) / SIGNWORDBITS ) ) )
|
#define GETWORD(x,i) ( *( (BloomSignatureWord *)(x) + ( (i) / SIGNWORDBITS ) ) )
|
||||||
|
@ -14,13 +14,9 @@
|
|||||||
|
|
||||||
#include "access/genam.h"
|
#include "access/genam.h"
|
||||||
#include "bloom.h"
|
#include "bloom.h"
|
||||||
#include "catalog/storage.h"
|
|
||||||
#include "commands/vacuum.h"
|
#include "commands/vacuum.h"
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "postmaster/autovacuum.h"
|
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/indexfsm.h"
|
#include "storage/indexfsm.h"
|
||||||
#include "storage/lmgr.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
#include "catalog/pg_opclass.h"
|
#include "catalog/pg_opclass.h"
|
||||||
#include "catalog/pg_opfamily.h"
|
#include "catalog/pg_opfamily.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "utils/builtins.h"
|
|
||||||
#include "utils/lsyscache.h"
|
|
||||||
#include "utils/regproc.h"
|
#include "utils/regproc.h"
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
|
|
||||||
|
@ -7,15 +7,12 @@
|
|||||||
|
|
||||||
#include "access/stratnum.h"
|
#include "access/stratnum.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/bytea.h"
|
|
||||||
#include "utils/cash.h"
|
|
||||||
#include "utils/date.h"
|
#include "utils/date.h"
|
||||||
#include "utils/float.h"
|
#include "utils/float.h"
|
||||||
#include "utils/inet.h"
|
#include "utils/inet.h"
|
||||||
#include "utils/numeric.h"
|
#include "utils/numeric.h"
|
||||||
#include "utils/timestamp.h"
|
#include "utils/timestamp.h"
|
||||||
#include "utils/uuid.h"
|
#include "utils/uuid.h"
|
||||||
#include "utils/varbit.h"
|
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_var.h"
|
#include "btree_utils_var.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/bytea.h"
|
|
||||||
#include "utils/varbit.h"
|
#include "utils/varbit.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "common/int.h"
|
|
||||||
|
|
||||||
typedef struct boolkey
|
typedef struct boolkey
|
||||||
{
|
{
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_var.h"
|
#include "btree_utils_var.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/bytea.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/date.h"
|
#include "utils/date.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
|
|
||||||
/* enums are really Oids, so we just use the same structure */
|
/* enums are really Oids, so we just use the same structure */
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/inet.h"
|
|
||||||
|
|
||||||
typedef struct inetkey
|
typedef struct inetkey
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/timestamp.h"
|
#include "utils/timestamp.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/inet.h"
|
#include "utils/inet.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/inet.h"
|
#include "utils/inet.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_var.h"
|
#include "btree_utils_var.h"
|
||||||
#include "utils/builtins.h"
|
#include "mb/pg_wchar.h"
|
||||||
|
#include "utils/fmgrprotos.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Text ops
|
** Text ops
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/date.h"
|
#include "utils/date.h"
|
||||||
#include "utils/timestamp.h"
|
#include "utils/timestamp.h"
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/datetime.h"
|
#include "utils/timestamp.h"
|
||||||
#include "utils/float.h"
|
#include "utils/float.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
#include "access/gist.h"
|
#include "access/gist.h"
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "utils/rel.h"
|
|
||||||
|
|
||||||
typedef char GBT_NUMKEY;
|
typedef char GBT_NUMKEY;
|
||||||
|
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_var.h"
|
#include "btree_utils_var.h"
|
||||||
#include "utils/builtins.h"
|
#include "mb/pg_wchar.h"
|
||||||
#include "utils/pg_locale.h"
|
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
|
|
||||||
/* used for key sorting */
|
/* used for key sorting */
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#include "access/gist.h"
|
#include "access/gist.h"
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "mb/pg_wchar.h"
|
|
||||||
|
|
||||||
/* Variable length key */
|
/* Variable length key */
|
||||||
typedef bytea GBT_VARKEY;
|
typedef bytea GBT_VARKEY;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "catalog/pg_collation.h"
|
#include "catalog/pg_collation.h"
|
||||||
#include "common/hashfn.h"
|
#include "common/hashfn.h"
|
||||||
#include "utils/builtins.h"
|
#include "fmgr.h"
|
||||||
#include "utils/formatting.h"
|
#include "utils/formatting.h"
|
||||||
#include "utils/varlena.h"
|
#include "utils/varlena.h"
|
||||||
#include "varatt.h"
|
#include "varatt.h"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "commands/defrem.h"
|
#include "commands/defrem.h"
|
||||||
#include "tsearch/ts_locale.h"
|
#include "tsearch/ts_locale.h"
|
||||||
#include "tsearch/ts_utils.h"
|
#include "tsearch/ts_public.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "mb/pg_wchar.h"
|
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/varlena.h"
|
#include "utils/varlena.h"
|
||||||
#include "varatt.h"
|
#include "varatt.h"
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include "_int.h"
|
#include "_int.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "utils/builtins.h"
|
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(bqarr_in);
|
PG_FUNCTION_INFO_V1(bqarr_in);
|
||||||
PG_FUNCTION_INFO_V1(bqarr_out);
|
PG_FUNCTION_INFO_V1(bqarr_out);
|
||||||
|
@ -20,10 +20,9 @@
|
|||||||
#include "catalog/pg_statistic.h"
|
#include "catalog/pg_statistic.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/lsyscache.h"
|
#include "utils/lsyscache.h"
|
||||||
#include "utils/selfuncs.h"
|
#include "utils/selfuncs.h"
|
||||||
#include "utils/syscache.h"
|
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(_int_overlap_sel);
|
PG_FUNCTION_INFO_V1(_int_overlap_sel);
|
||||||
PG_FUNCTION_INFO_V1(_int_contains_sel);
|
PG_FUNCTION_INFO_V1(_int_contains_sel);
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "UPC.h"
|
#include "UPC.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "isn.h"
|
#include "isn.h"
|
||||||
#include "utils/builtins.h"
|
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "commands/trigger.h"
|
#include "commands/trigger.h"
|
||||||
#include "executor/spi.h"
|
#include "executor/spi.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#include "crc32.h"
|
#include "crc32.h"
|
||||||
#include "libpq/pqformat.h"
|
#include "libpq/pqformat.h"
|
||||||
#include "ltree.h"
|
#include "ltree.h"
|
||||||
#include "utils/memutils.h"
|
|
||||||
#include "varatt.h"
|
#include "varatt.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,13 +7,11 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "access/htup_details.h"
|
|
||||||
#include "catalog/pg_statistic.h"
|
|
||||||
#include "common/hashfn.h"
|
#include "common/hashfn.h"
|
||||||
#include "ltree.h"
|
#include "ltree.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/lsyscache.h"
|
|
||||||
#include "utils/selfuncs.h"
|
#include "utils/selfuncs.h"
|
||||||
|
#include "varatt.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -9,20 +9,16 @@
|
|||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/brin.h"
|
|
||||||
#include "access/brin_internal.h"
|
#include "access/brin_internal.h"
|
||||||
#include "access/brin_page.h"
|
#include "access/brin_page.h"
|
||||||
#include "access/brin_revmap.h"
|
|
||||||
#include "access/brin_tuple.h"
|
#include "access/brin_tuple.h"
|
||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "catalog/index.h"
|
|
||||||
#include "catalog/pg_am_d.h"
|
#include "catalog/pg_am_d.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "lib/stringinfo.h"
|
#include "lib/stringinfo.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pageinspect.h"
|
#include "pageinspect.h"
|
||||||
#include "utils/array.h"
|
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/lsyscache.h"
|
#include "utils/lsyscache.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "funcapi.h"
|
#include "fmgr.h"
|
||||||
#include "lib/stringinfo.h"
|
#include "lib/stringinfo.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pageinspect.h"
|
#include "pageinspect.h"
|
||||||
|
@ -9,17 +9,14 @@
|
|||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/gin.h"
|
|
||||||
#include "access/gin_private.h"
|
#include "access/gin_private.h"
|
||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "catalog/namespace.h"
|
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pageinspect.h"
|
#include "pageinspect.h"
|
||||||
#include "utils/array.h"
|
#include "utils/array.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/rel.h"
|
|
||||||
|
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(gin_metapage_info);
|
PG_FUNCTION_INFO_V1(gin_metapage_info);
|
||||||
|
@ -10,10 +10,8 @@
|
|||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/gist.h"
|
#include "access/gist.h"
|
||||||
#include "access/gist_private.h"
|
|
||||||
#include "access/htup.h"
|
#include "access/htup.h"
|
||||||
#include "access/relation.h"
|
#include "access/relation.h"
|
||||||
#include "catalog/namespace.h"
|
|
||||||
#include "catalog/pg_am_d.h"
|
#include "catalog/pg_am_d.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
@ -25,7 +23,6 @@
|
|||||||
#include "utils/pg_lsn.h"
|
#include "utils/pg_lsn.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
#include "utils/ruleutils.h"
|
#include "utils/ruleutils.h"
|
||||||
#include "utils/varlena.h"
|
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(gist_page_opaque_info);
|
PG_FUNCTION_INFO_V1(gist_page_opaque_info);
|
||||||
PG_FUNCTION_INFO_V1(gist_page_items);
|
PG_FUNCTION_INFO_V1(gist_page_items);
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pageinspect.h"
|
|
||||||
#include "port/pg_bitutils.h"
|
#include "port/pg_bitutils.h"
|
||||||
#include "utils/array.h"
|
#include "utils/array.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/relation.h"
|
#include "access/relation.h"
|
||||||
#include "funcapi.h"
|
#include "fmgr.h"
|
||||||
#include "storage/freespace.h"
|
#include "storage/freespace.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
|
|
||||||
#include "access/relation.h"
|
#include "access/relation.h"
|
||||||
#include "access/xact.h"
|
#include "access/xact.h"
|
||||||
#include "catalog/pg_class.h"
|
|
||||||
#include "catalog/pg_type.h"
|
|
||||||
#include "pgstat.h"
|
#include "pgstat.h"
|
||||||
#include "postmaster/bgworker.h"
|
#include "postmaster/bgworker.h"
|
||||||
#include "postmaster/interrupt.h"
|
#include "postmaster/interrupt.h"
|
||||||
@ -42,18 +40,13 @@
|
|||||||
#include "storage/ipc.h"
|
#include "storage/ipc.h"
|
||||||
#include "storage/latch.h"
|
#include "storage/latch.h"
|
||||||
#include "storage/lwlock.h"
|
#include "storage/lwlock.h"
|
||||||
#include "storage/proc.h"
|
|
||||||
#include "storage/procsignal.h"
|
#include "storage/procsignal.h"
|
||||||
#include "storage/shmem.h"
|
|
||||||
#include "storage/smgr.h"
|
#include "storage/smgr.h"
|
||||||
#include "tcop/tcopprot.h"
|
#include "tcop/tcopprot.h"
|
||||||
#include "utils/acl.h"
|
|
||||||
#include "utils/datetime.h"
|
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
#include "utils/memutils.h"
|
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
#include "utils/relfilenumbermap.h"
|
#include "utils/relfilenumbermap.h"
|
||||||
#include "utils/resowner.h"
|
#include "utils/timestamp.h"
|
||||||
|
|
||||||
#define AUTOPREWARM_FILE "autoprewarm.blocks"
|
#define AUTOPREWARM_FILE "autoprewarm.blocks"
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@
|
|||||||
|
|
||||||
#include "access/parallel.h"
|
#include "access/parallel.h"
|
||||||
#include "catalog/pg_authid.h"
|
#include "catalog/pg_authid.h"
|
||||||
#include "common/hashfn.h"
|
|
||||||
#include "common/int.h"
|
#include "common/int.h"
|
||||||
#include "executor/instrument.h"
|
#include "executor/instrument.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
@ -59,9 +58,7 @@
|
|||||||
#include "nodes/queryjumble.h"
|
#include "nodes/queryjumble.h"
|
||||||
#include "optimizer/planner.h"
|
#include "optimizer/planner.h"
|
||||||
#include "parser/analyze.h"
|
#include "parser/analyze.h"
|
||||||
#include "parser/parsetree.h"
|
|
||||||
#include "parser/scanner.h"
|
#include "parser/scanner.h"
|
||||||
#include "parser/scansup.h"
|
|
||||||
#include "pgstat.h"
|
#include "pgstat.h"
|
||||||
#include "storage/fd.h"
|
#include "storage/fd.h"
|
||||||
#include "storage/ipc.h"
|
#include "storage/ipc.h"
|
||||||
|
@ -12,11 +12,11 @@
|
|||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/heapam.h"
|
#include "access/htup_details.h"
|
||||||
|
#include "access/relation.h"
|
||||||
#include "access/visibilitymap.h"
|
#include "access/visibilitymap.h"
|
||||||
#include "access/xloginsert.h"
|
#include "access/xloginsert.h"
|
||||||
#include "catalog/pg_am_d.h"
|
#include "catalog/pg_am_d.h"
|
||||||
#include "catalog/pg_proc_d.h"
|
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "utils/acl.h"
|
#include "utils/acl.h"
|
||||||
|
@ -19,12 +19,10 @@
|
|||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/proc.h"
|
|
||||||
#include "storage/procarray.h"
|
#include "storage/procarray.h"
|
||||||
#include "storage/read_stream.h"
|
#include "storage/read_stream.h"
|
||||||
#include "storage/smgr.h"
|
#include "storage/smgr.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
#include "utils/snapmgr.h"
|
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
#include "px-crypt.h"
|
#include "px-crypt.h"
|
||||||
#include "px.h"
|
#include "px.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/uuid.h"
|
|
||||||
#include "varatt.h"
|
#include "varatt.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/procarray.h"
|
#include "storage/procarray.h"
|
||||||
#include "utils/acl.h"
|
#include "utils/acl.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
#include "utils/snapmgr.h"
|
#include "utils/snapmgr.h"
|
||||||
#include "utils/varlena.h"
|
#include "utils/varlena.h"
|
||||||
|
@ -14,21 +14,15 @@
|
|||||||
|
|
||||||
#include "access/heapam.h"
|
#include "access/heapam.h"
|
||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "access/multixact.h"
|
|
||||||
#include "access/relation.h"
|
#include "access/relation.h"
|
||||||
#include "access/transam.h"
|
|
||||||
#include "access/visibilitymap.h"
|
#include "access/visibilitymap.h"
|
||||||
#include "access/xact.h"
|
|
||||||
#include "catalog/namespace.h"
|
|
||||||
#include "catalog/pg_am_d.h"
|
#include "catalog/pg_am_d.h"
|
||||||
#include "commands/vacuum.h"
|
#include "commands/vacuum.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/freespace.h"
|
#include "storage/freespace.h"
|
||||||
#include "storage/lmgr.h"
|
|
||||||
#include "storage/procarray.h"
|
#include "storage/procarray.h"
|
||||||
#include "utils/builtins.h"
|
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(pgstattuple_approx);
|
PG_FUNCTION_INFO_V1(pgstattuple_approx);
|
||||||
PG_FUNCTION_INFO_V1(pgstattuple_approx_v1_5);
|
PG_FUNCTION_INFO_V1(pgstattuple_approx_v1_5);
|
||||||
|
@ -32,14 +32,11 @@
|
|||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "access/nbtree.h"
|
#include "access/nbtree.h"
|
||||||
#include "access/relation.h"
|
#include "access/relation.h"
|
||||||
#include "access/table.h"
|
|
||||||
#include "catalog/namespace.h"
|
#include "catalog/namespace.h"
|
||||||
#include "catalog/pg_am.h"
|
#include "catalog/pg_am.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/lmgr.h"
|
|
||||||
#include "utils/builtins.h"
|
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
#include "utils/varlena.h"
|
#include "utils/varlena.h"
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/lmgr.h"
|
#include "storage/lmgr.h"
|
||||||
#include "utils/builtins.h"
|
|
||||||
#include "utils/varlena.h"
|
#include "utils/varlena.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "access/htup_details.h"
|
|
||||||
#include "access/xact.h"
|
#include "access/xact.h"
|
||||||
#include "catalog/pg_user_mapping.h"
|
#include "catalog/pg_user_mapping.h"
|
||||||
#include "commands/defrem.h"
|
#include "commands/defrem.h"
|
||||||
@ -27,13 +26,10 @@
|
|||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pgstat.h"
|
#include "pgstat.h"
|
||||||
#include "postgres_fdw.h"
|
#include "postgres_fdw.h"
|
||||||
#include "storage/fd.h"
|
|
||||||
#include "storage/latch.h"
|
#include "storage/latch.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/datetime.h"
|
|
||||||
#include "utils/hsearch.h"
|
#include "utils/hsearch.h"
|
||||||
#include "utils/inval.h"
|
#include "utils/inval.h"
|
||||||
#include "utils/memutils.h"
|
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -47,8 +47,6 @@
|
|||||||
#include "catalog/pg_ts_dict.h"
|
#include "catalog/pg_ts_dict.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "commands/defrem.h"
|
#include "commands/defrem.h"
|
||||||
#include "commands/tablecmds.h"
|
|
||||||
#include "nodes/makefuncs.h"
|
|
||||||
#include "nodes/nodeFuncs.h"
|
#include "nodes/nodeFuncs.h"
|
||||||
#include "nodes/plannodes.h"
|
#include "nodes/plannodes.h"
|
||||||
#include "optimizer/optimizer.h"
|
#include "optimizer/optimizer.h"
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include "commands/extension.h"
|
#include "commands/extension.h"
|
||||||
#include "libpq/libpq-be.h"
|
#include "libpq/libpq-be.h"
|
||||||
#include "postgres_fdw.h"
|
#include "postgres_fdw.h"
|
||||||
#include "utils/builtins.h"
|
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
#include "utils/varlena.h"
|
#include "utils/varlena.h"
|
||||||
|
|
||||||
|
@ -17,11 +17,9 @@
|
|||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "access/sysattr.h"
|
#include "access/sysattr.h"
|
||||||
#include "access/table.h"
|
#include "access/table.h"
|
||||||
#include "catalog/pg_class.h"
|
|
||||||
#include "catalog/pg_opfamily.h"
|
#include "catalog/pg_opfamily.h"
|
||||||
#include "commands/defrem.h"
|
#include "commands/defrem.h"
|
||||||
#include "commands/explain.h"
|
#include "commands/explain.h"
|
||||||
#include "commands/vacuum.h"
|
|
||||||
#include "executor/execAsync.h"
|
#include "executor/execAsync.h"
|
||||||
#include "foreign/fdwapi.h"
|
#include "foreign/fdwapi.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
@ -29,7 +27,6 @@
|
|||||||
#include "nodes/makefuncs.h"
|
#include "nodes/makefuncs.h"
|
||||||
#include "nodes/nodeFuncs.h"
|
#include "nodes/nodeFuncs.h"
|
||||||
#include "optimizer/appendinfo.h"
|
#include "optimizer/appendinfo.h"
|
||||||
#include "optimizer/clauses.h"
|
|
||||||
#include "optimizer/cost.h"
|
#include "optimizer/cost.h"
|
||||||
#include "optimizer/inherit.h"
|
#include "optimizer/inherit.h"
|
||||||
#include "optimizer/optimizer.h"
|
#include "optimizer/optimizer.h"
|
||||||
|
@ -19,7 +19,7 @@ OH, me, I'm Terry Mackintosh <terry@terrym.com>
|
|||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "commands/trigger.h"
|
#include "commands/trigger.h"
|
||||||
#include "executor/spi.h"
|
#include "executor/spi.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -38,10 +38,10 @@
|
|||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "common/pg_prng.h"
|
#include "common/pg_prng.h"
|
||||||
#include "executor/spi.h"
|
#include "executor/spi.h"
|
||||||
|
#include "fmgr.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "lib/stringinfo.h"
|
#include "lib/stringinfo.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "tablefunc.h"
|
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
/*
|
|
||||||
* contrib/tablefunc/tablefunc.h
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* tablefunc
|
|
||||||
*
|
|
||||||
* Sample to demonstrate C functions which return setof scalar
|
|
||||||
* and setof composite.
|
|
||||||
* Joe Conway <mail@joeconway.com>
|
|
||||||
* And contributors:
|
|
||||||
* Nabil Sayegh <postgresql@e-trolley.de>
|
|
||||||
*
|
|
||||||
* 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 */
|
|
@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/relscan.h"
|
|
||||||
#include "access/tsmapi.h"
|
#include "access/tsmapi.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "access/relscan.h"
|
|
||||||
#include "access/tsmapi.h"
|
#include "access/tsmapi.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "catalog/namespace.h"
|
|
||||||
#include "catalog/pg_ts_dict.h"
|
#include "catalog/pg_ts_dict.h"
|
||||||
#include "commands/defrem.h"
|
#include "commands/defrem.h"
|
||||||
#include "lib/stringinfo.h"
|
#include "lib/stringinfo.h"
|
||||||
@ -22,7 +21,6 @@
|
|||||||
#include "tsearch/ts_public.h"
|
#include "tsearch/ts_public.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/lsyscache.h"
|
#include "utils/lsyscache.h"
|
||||||
#include "utils/regproc.h"
|
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "lib/stringinfo.h"
|
#include "lib/stringinfo.h"
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/xml.h"
|
#include "utils/xml.h"
|
||||||
|
|
||||||
|
@ -7,10 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "executor/spi.h"
|
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "funcapi.h"
|
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/xml.h"
|
#include "utils/xml.h"
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include "executor/spi.h"
|
#include "executor/spi.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "nodes/makefuncs.h"
|
|
||||||
#include "parser/parse_type.h"
|
#include "parser/parse_type.h"
|
||||||
#include "storage/ipc.h"
|
#include "storage/ipc.h"
|
||||||
#include "tcop/tcopprot.h"
|
#include "tcop/tcopprot.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "nodes/makefuncs.h"
|
#include "nodes/makefuncs.h"
|
||||||
#include "parser/parse_type.h"
|
#include "parser/parse_node.h"
|
||||||
#include "plpgsql.h"
|
#include "plpgsql.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/fmgroids.h"
|
#include "utils/fmgroids.h"
|
||||||
@ -31,7 +31,6 @@
|
|||||||
#include "utils/lsyscache.h"
|
#include "utils/lsyscache.h"
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
#include "utils/regproc.h"
|
#include "utils/regproc.h"
|
||||||
#include "utils/rel.h"
|
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
#include "utils/typcache.h"
|
#include "utils/typcache.h"
|
||||||
|
|
||||||
|
@ -19,11 +19,9 @@
|
|||||||
|
|
||||||
#include "access/detoast.h"
|
#include "access/detoast.h"
|
||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "access/transam.h"
|
|
||||||
#include "access/tupconvert.h"
|
#include "access/tupconvert.h"
|
||||||
#include "catalog/pg_proc.h"
|
#include "catalog/pg_proc.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "commands/defrem.h"
|
|
||||||
#include "executor/execExpr.h"
|
#include "executor/execExpr.h"
|
||||||
#include "executor/spi.h"
|
#include "executor/spi.h"
|
||||||
#include "executor/tstoreReceiver.h"
|
#include "executor/tstoreReceiver.h"
|
||||||
@ -34,13 +32,10 @@
|
|||||||
#include "optimizer/optimizer.h"
|
#include "optimizer/optimizer.h"
|
||||||
#include "parser/parse_coerce.h"
|
#include "parser/parse_coerce.h"
|
||||||
#include "parser/parse_type.h"
|
#include "parser/parse_type.h"
|
||||||
#include "parser/scansup.h"
|
|
||||||
#include "plpgsql.h"
|
#include "plpgsql.h"
|
||||||
#include "storage/proc.h"
|
#include "storage/proc.h"
|
||||||
#include "tcop/cmdtag.h"
|
#include "tcop/cmdtag.h"
|
||||||
#include "tcop/pquery.h"
|
#include "tcop/pquery.h"
|
||||||
#include "tcop/tcopprot.h"
|
|
||||||
#include "tcop/utility.h"
|
|
||||||
#include "utils/array.h"
|
#include "utils/array.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/datum.h"
|
#include "utils/datum.h"
|
||||||
|
@ -8,14 +8,12 @@
|
|||||||
|
|
||||||
#include <limits.h>
|
#include <limits.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 "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_resultobject.h"
|
#include "plpy_resultobject.h"
|
||||||
#include "plpy_spi.h"
|
#include "plpy_spi.h"
|
||||||
#include "plpython.h"
|
#include "plpython.h"
|
||||||
|
@ -18,10 +18,8 @@
|
|||||||
#include "plpy_procedure.h"
|
#include "plpy_procedure.h"
|
||||||
#include "plpy_subxactobject.h"
|
#include "plpy_subxactobject.h"
|
||||||
#include "plpython.h"
|
#include "plpython.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/lsyscache.h"
|
|
||||||
#include "utils/rel.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
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "plpy_cursorobject.h"
|
#include "plpy_cursorobject.h"
|
||||||
#include "plpy_elog.h"
|
|
||||||
#include "plpy_planobject.h"
|
#include "plpy_planobject.h"
|
||||||
#include "plpy_spi.h"
|
#include "plpy_spi.h"
|
||||||
#include "plpython.h"
|
#include "plpython.h"
|
||||||
|
@ -6,11 +6,9 @@
|
|||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/xact.h"
|
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
#include "plpy_cursorobject.h"
|
#include "plpy_cursorobject.h"
|
||||||
#include "plpy_elog.h"
|
#include "plpy_elog.h"
|
||||||
#include "plpy_main.h"
|
|
||||||
#include "plpy_planobject.h"
|
#include "plpy_planobject.h"
|
||||||
#include "plpy_plpymodule.h"
|
#include "plpy_plpymodule.h"
|
||||||
#include "plpy_resultobject.h"
|
#include "plpy_resultobject.h"
|
||||||
@ -18,7 +16,6 @@
|
|||||||
#include "plpy_subxactobject.h"
|
#include "plpy_subxactobject.h"
|
||||||
#include "plpython.h"
|
#include "plpython.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/snapmgr.h"
|
|
||||||
|
|
||||||
HTAB *PLy_spi_exceptions = NULL;
|
HTAB *PLy_spi_exceptions = NULL;
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "access/transam.h"
|
|
||||||
#include "catalog/pg_proc.h"
|
#include "catalog/pg_proc.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
@ -17,8 +16,6 @@
|
|||||||
#include "plpython.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/lsyscache.h"
|
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#include "access/htup_details.h"
|
|
||||||
#include "access/xact.h"
|
#include "access/xact.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "executor/spi.h"
|
#include "executor/spi.h"
|
||||||
@ -18,12 +17,10 @@
|
|||||||
#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_resultobject.h"
|
#include "plpy_resultobject.h"
|
||||||
#include "plpy_spi.h"
|
#include "plpy_spi.h"
|
||||||
#include "plpython.h"
|
#include "plpython.h"
|
||||||
#include "utils/memutils.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,
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#include "plpy_elog.h"
|
#include "plpy_elog.h"
|
||||||
#include "plpy_util.h"
|
#include "plpy_util.h"
|
||||||
#include "plpython.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
|
||||||
|
@ -25,13 +25,12 @@
|
|||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "nodes/makefuncs.h"
|
|
||||||
#include "parser/parse_func.h"
|
#include "parser/parse_func.h"
|
||||||
#include "parser/parse_type.h"
|
#include "parser/parse_type.h"
|
||||||
#include "pgstat.h"
|
#include "pgstat.h"
|
||||||
#include "tcop/tcopprot.h"
|
|
||||||
#include "utils/acl.h"
|
#include "utils/acl.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
|
#include "utils/guc.h"
|
||||||
#include "utils/lsyscache.h"
|
#include "utils/lsyscache.h"
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
#include "utils/regproc.h"
|
#include "utils/regproc.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#include "optimizer/planner.h"
|
#include "optimizer/planner.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/fmgrprotos.h"
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
#include "utils/inval.h"
|
#include "utils/inval.h"
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
#include "catalog/index.h"
|
#include "catalog/index.h"
|
||||||
#include "commands/vacuum.h"
|
#include "commands/vacuum.h"
|
||||||
#include "nodes/pathnodes.h"
|
#include "nodes/pathnodes.h"
|
||||||
#include "utils/guc.h"
|
|
||||||
#include "utils/rel.h"
|
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -15,10 +15,8 @@
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "fmgr.h"
|
||||||
#include "libpq/auth.h"
|
#include "libpq/auth.h"
|
||||||
#include "libpq/libpq.h"
|
|
||||||
#include "libpq/libpq-be.h"
|
|
||||||
#include "utils/guc.h"
|
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
@ -19,10 +19,8 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include "catalog/pg_type_d.h"
|
#include "catalog/pg_type_d.h"
|
||||||
#include "common/fe_memutils.h"
|
|
||||||
#include "libpq-fe.h"
|
#include "libpq-fe.h"
|
||||||
#include "pg_getopt.h"
|
#include "pg_getopt.h"
|
||||||
#include "portability/instr_time.h"
|
|
||||||
|
|
||||||
|
|
||||||
static void exit_nicely(PGconn *conn);
|
static void exit_nicely(PGconn *conn);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#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/fmgrprotos.h"
|
||||||
#include "utils/lsyscache.h"
|
#include "utils/lsyscache.h"
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "catalog/pg_type.h"
|
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "nodes/execnodes.h"
|
#include "nodes/execnodes.h"
|
||||||
#include "tcop/deparse_utility.h"
|
#include "tcop/deparse_utility.h"
|
||||||
|
@ -15,10 +15,6 @@
|
|||||||
#include "common/pg_prng.h"
|
#include "common/pg_prng.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "lib/integerset.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/memutils.h"
|
||||||
#include "utils/timestamp.h"
|
#include "utils/timestamp.h"
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "access/parallel.h"
|
#include "access/parallel.h"
|
||||||
#include "catalog/dependency.h"
|
#include "catalog/dependency.h"
|
||||||
#include "catalog/objectaccess.h"
|
#include "catalog/objectaccess.h"
|
||||||
#include "catalog/pg_proc.h"
|
|
||||||
#include "executor/executor.h"
|
#include "executor/executor.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
#include "common/int.h"
|
#include "common/int.h"
|
||||||
#include "common/pg_prng.h"
|
#include "common/pg_prng.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "storage/lwlock.h"
|
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
#include "utils/timestamp.h"
|
#include "utils/timestamp.h"
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "funcapi.h"
|
#include "funcapi.h"
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "regex/regex.h"
|
#include "regex/regex.h"
|
||||||
#include "utils/array.h"
|
#include "utils/array.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "lib/ilist.h"
|
|
||||||
#include "utils/memutils.h"
|
|
||||||
#include "utils/resowner.h"
|
#include "utils/resowner.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "lib/ilist.h"
|
#include "lib/ilist.h"
|
||||||
#include "utils/memutils.h"
|
|
||||||
#include "utils/resowner.h"
|
#include "utils/resowner.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "miscadmin.h"
|
|
||||||
#include "nodes/makefuncs.h"
|
#include "nodes/makefuncs.h"
|
||||||
#include "parser/parse_clause.h"
|
#include "parser/parse_clause.h"
|
||||||
#include "parser/parse_collate.h"
|
#include "parser/parse_collate.h"
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pgstat.h"
|
#include "pgstat.h"
|
||||||
#include "postmaster/bgworker.h"
|
#include "postmaster/bgworker.h"
|
||||||
#include "storage/procsignal.h"
|
|
||||||
#include "storage/shm_toc.h"
|
#include "storage/shm_toc.h"
|
||||||
#include "test_shm_mq.h"
|
#include "test_shm_mq.h"
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "access/multixact.h"
|
#include "access/multixact.h"
|
||||||
#include "access/xact.h"
|
#include "access/xact.h"
|
||||||
#include "utils/builtins.h"
|
#include "fmgr.h"
|
||||||
#include "utils/injection_point.h"
|
#include "utils/injection_point.h"
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(test_create_multixact);
|
PG_FUNCTION_INFO_V1(test_create_multixact);
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include "access/tidstore.h"
|
#include "access/tidstore.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "funcapi.h"
|
|
||||||
#include "storage/block.h"
|
#include "storage/block.h"
|
||||||
#include "storage/itemptr.h"
|
#include "storage/itemptr.h"
|
||||||
#include "storage/lwlock.h"
|
#include "storage/lwlock.h"
|
||||||
|
@ -26,11 +26,7 @@
|
|||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "postmaster/bgworker.h"
|
#include "postmaster/bgworker.h"
|
||||||
#include "postmaster/interrupt.h"
|
#include "postmaster/interrupt.h"
|
||||||
#include "storage/ipc.h"
|
|
||||||
#include "storage/latch.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 */
|
/* these headers are used by this particular worker's code */
|
||||||
#include "access/xact.h"
|
#include "access/xact.h"
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
#include "common/logging.h"
|
#include "common/logging.h"
|
||||||
#include "common/restricted_token.h"
|
#include "common/restricted_token.h"
|
||||||
#include "common/string.h"
|
|
||||||
#include "common/username.h"
|
#include "common/username.h"
|
||||||
#include "getopt_long.h"
|
#include "getopt_long.h"
|
||||||
#include "lib/stringinfo.h"
|
#include "lib/stringinfo.h"
|
||||||
|
@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
#include "access/detoast.h"
|
#include "access/detoast.h"
|
||||||
#include "access/htup_details.h"
|
#include "access/htup_details.h"
|
||||||
#include "access/transam.h"
|
|
||||||
#include "access/xact.h"
|
|
||||||
#include "catalog/namespace.h"
|
#include "catalog/namespace.h"
|
||||||
#include "catalog/pg_operator.h"
|
#include "catalog/pg_operator.h"
|
||||||
#include "catalog/pg_type.h"
|
#include "catalog/pg_type.h"
|
||||||
@ -39,7 +37,6 @@
|
|||||||
#include "parser/parse_coerce.h"
|
#include "parser/parse_coerce.h"
|
||||||
#include "port/atomics.h"
|
#include "port/atomics.h"
|
||||||
#include "storage/spin.h"
|
#include "storage/spin.h"
|
||||||
#include "utils/array.h"
|
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/geo_decls.h"
|
#include "utils/geo_decls.h"
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
Reference in New Issue
Block a user