mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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/genam.h"
|
||||
#include "access/heapam.h"
|
||||
#include "access/heaptoast.h"
|
||||
#include "access/multixact.h"
|
||||
#include "access/relation.h"
|
||||
#include "access/table.h"
|
||||
#include "access/toast_internals.h"
|
||||
#include "access/visibilitymap.h"
|
||||
#include "access/xact.h"
|
||||
#include "catalog/pg_am.h"
|
||||
#include "catalog/pg_class.h"
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/procarray.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgroids.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
PG_FUNCTION_INFO_V1(verify_heapam);
|
||||
|
||||
|
@ -33,11 +33,9 @@
|
||||
#include "catalog/index.h"
|
||||
#include "catalog/pg_am.h"
|
||||
#include "catalog/pg_opfamily_d.h"
|
||||
#include "commands/tablecmds.h"
|
||||
#include "common/pg_prng.h"
|
||||
#include "lib/bloomfilter.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "storage/smgr.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/memutils.h"
|
||||
|
@ -14,9 +14,7 @@
|
||||
#include <limits.h>
|
||||
|
||||
#include "libpq/auth.h"
|
||||
#include "port.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -18,8 +18,6 @@
|
||||
#include "commands/explain.h"
|
||||
#include "common/pg_prng.h"
|
||||
#include "executor/instrument.h"
|
||||
#include "jit/jit.h"
|
||||
#include "nodes/params.h"
|
||||
#include "utils/guc.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include "storage/copydir.h"
|
||||
#include "storage/fd.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/memutils.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "bloom.h"
|
||||
#include "fmgr.h"
|
||||
#include "utils/selfuncs.h"
|
||||
|
||||
/*
|
||||
|
@ -16,11 +16,9 @@
|
||||
#include "access/generic_xlog.h"
|
||||
#include "access/tableam.h"
|
||||
#include "bloom.h"
|
||||
#include "catalog/index.h"
|
||||
#include "miscadmin.h"
|
||||
#include "nodes/execnodes.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/indexfsm.h"
|
||||
#include "storage/smgr.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
|
@ -15,11 +15,7 @@
|
||||
#include "access/relscan.h"
|
||||
#include "bloom.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
/*
|
||||
* Begin scan of bloom index.
|
||||
|
@ -17,14 +17,11 @@
|
||||
#include "access/generic_xlog.h"
|
||||
#include "access/reloptions.h"
|
||||
#include "bloom.h"
|
||||
#include "catalog/index.h"
|
||||
#include "commands/vacuum.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/freespace.h"
|
||||
#include "storage/indexfsm.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "varatt.h"
|
||||
|
||||
/* Signature dealing macros - note i is assumed to be of type int */
|
||||
#define GETWORD(x,i) ( *( (BloomSignatureWord *)(x) + ( (i) / SIGNWORDBITS ) ) )
|
||||
|
@ -14,13 +14,9 @@
|
||||
|
||||
#include "access/genam.h"
|
||||
#include "bloom.h"
|
||||
#include "catalog/storage.h"
|
||||
#include "commands/vacuum.h"
|
||||
#include "miscadmin.h"
|
||||
#include "postmaster/autovacuum.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/indexfsm.h"
|
||||
#include "storage/lmgr.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -20,8 +20,6 @@
|
||||
#include "catalog/pg_opclass.h"
|
||||
#include "catalog/pg_opfamily.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/regproc.h"
|
||||
#include "utils/syscache.h"
|
||||
|
||||
|
@ -7,15 +7,12 @@
|
||||
|
||||
#include "access/stratnum.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/bytea.h"
|
||||
#include "utils/cash.h"
|
||||
#include "utils/date.h"
|
||||
#include "utils/float.h"
|
||||
#include "utils/inet.h"
|
||||
#include "utils/numeric.h"
|
||||
#include "utils/timestamp.h"
|
||||
#include "utils/uuid.h"
|
||||
#include "utils/varbit.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -5,8 +5,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_var.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/bytea.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/varbit.h"
|
||||
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "common/int.h"
|
||||
|
||||
typedef struct boolkey
|
||||
{
|
||||
|
@ -5,8 +5,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_var.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/bytea.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/date.h"
|
||||
|
||||
typedef struct
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "fmgr.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
|
||||
/* enums are really Oids, so we just use the same structure */
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include "btree_utils_num.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/inet.h"
|
||||
|
||||
typedef struct inetkey
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
typedef struct
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/inet.h"
|
||||
|
||||
typedef struct
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/inet.h"
|
||||
|
||||
typedef struct
|
||||
|
@ -5,7 +5,8 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_var.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
|
||||
/*
|
||||
** Text ops
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/date.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/datetime.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/timestamp.h"
|
||||
#include "utils/float.h"
|
||||
|
||||
typedef struct
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
#include "access/gist.h"
|
||||
#include "btree_gist.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
typedef char GBT_NUMKEY;
|
||||
|
||||
|
@ -9,8 +9,7 @@
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_var.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/pg_locale.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
/* used for key sorting */
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
#include "access/gist.h"
|
||||
#include "btree_gist.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
|
||||
/* Variable length key */
|
||||
typedef bytea GBT_VARKEY;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "catalog/pg_collation.h"
|
||||
#include "common/hashfn.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "fmgr.h"
|
||||
#include "utils/formatting.h"
|
||||
#include "utils/varlena.h"
|
||||
#include "varatt.h"
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "commands/defrem.h"
|
||||
#include "tsearch/ts_locale.h"
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "tsearch/ts_public.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -40,7 +40,6 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/varlena.h"
|
||||
#include "varatt.h"
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#include "_int.h"
|
||||
#include "miscadmin.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
PG_FUNCTION_INFO_V1(bqarr_in);
|
||||
PG_FUNCTION_INFO_V1(bqarr_out);
|
||||
|
@ -20,10 +20,9 @@
|
||||
#include "catalog/pg_statistic.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "miscadmin.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/selfuncs.h"
|
||||
#include "utils/syscache.h"
|
||||
|
||||
PG_FUNCTION_INFO_V1(_int_overlap_sel);
|
||||
PG_FUNCTION_INFO_V1(_int_contains_sel);
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "UPC.h"
|
||||
#include "fmgr.h"
|
||||
#include "isn.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include "commands/trigger.h"
|
||||
#include "executor/spi.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "crc32.h"
|
||||
#include "libpq/pqformat.h"
|
||||
#include "ltree.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
|
@ -7,13 +7,11 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "access/htup_details.h"
|
||||
#include "catalog/pg_statistic.h"
|
||||
#include "common/hashfn.h"
|
||||
#include "ltree.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/selfuncs.h"
|
||||
#include "varatt.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -9,20 +9,16 @@
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/brin.h"
|
||||
#include "access/brin_internal.h"
|
||||
#include "access/brin_page.h"
|
||||
#include "access/brin_revmap.h"
|
||||
#include "access/brin_tuple.h"
|
||||
#include "access/htup_details.h"
|
||||
#include "catalog/index.h"
|
||||
#include "catalog/pg_am_d.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "funcapi.h"
|
||||
#include "lib/stringinfo.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pageinspect.h"
|
||||
#include "utils/array.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/rel.h"
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "funcapi.h"
|
||||
#include "fmgr.h"
|
||||
#include "lib/stringinfo.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pageinspect.h"
|
||||
|
@ -9,17 +9,14 @@
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/gin.h"
|
||||
#include "access/gin_private.h"
|
||||
#include "access/htup_details.h"
|
||||
#include "catalog/namespace.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pageinspect.h"
|
||||
#include "utils/array.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
|
||||
PG_FUNCTION_INFO_V1(gin_metapage_info);
|
||||
|
@ -10,10 +10,8 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/gist.h"
|
||||
#include "access/gist_private.h"
|
||||
#include "access/htup.h"
|
||||
#include "access/relation.h"
|
||||
#include "catalog/namespace.h"
|
||||
#include "catalog/pg_am_d.h"
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
@ -25,7 +23,6 @@
|
||||
#include "utils/pg_lsn.h"
|
||||
#include "utils/rel.h"
|
||||
#include "utils/ruleutils.h"
|
||||
#include "utils/varlena.h"
|
||||
|
||||
PG_FUNCTION_INFO_V1(gist_page_opaque_info);
|
||||
PG_FUNCTION_INFO_V1(gist_page_items);
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "funcapi.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pageinspect.h"
|
||||
#include "port/pg_bitutils.h"
|
||||
#include "utils/array.h"
|
||||
#include "utils/builtins.h"
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/relation.h"
|
||||
#include "funcapi.h"
|
||||
#include "fmgr.h"
|
||||
#include "storage/freespace.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -30,8 +30,6 @@
|
||||
|
||||
#include "access/relation.h"
|
||||
#include "access/xact.h"
|
||||
#include "catalog/pg_class.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "pgstat.h"
|
||||
#include "postmaster/bgworker.h"
|
||||
#include "postmaster/interrupt.h"
|
||||
@ -42,18 +40,13 @@
|
||||
#include "storage/ipc.h"
|
||||
#include "storage/latch.h"
|
||||
#include "storage/lwlock.h"
|
||||
#include "storage/proc.h"
|
||||
#include "storage/procsignal.h"
|
||||
#include "storage/shmem.h"
|
||||
#include "storage/smgr.h"
|
||||
#include "tcop/tcopprot.h"
|
||||
#include "utils/acl.h"
|
||||
#include "utils/datetime.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/rel.h"
|
||||
#include "utils/relfilenumbermap.h"
|
||||
#include "utils/resowner.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
#define AUTOPREWARM_FILE "autoprewarm.blocks"
|
||||
|
||||
|
@ -49,7 +49,6 @@
|
||||
|
||||
#include "access/parallel.h"
|
||||
#include "catalog/pg_authid.h"
|
||||
#include "common/hashfn.h"
|
||||
#include "common/int.h"
|
||||
#include "executor/instrument.h"
|
||||
#include "funcapi.h"
|
||||
@ -59,9 +58,7 @@
|
||||
#include "nodes/queryjumble.h"
|
||||
#include "optimizer/planner.h"
|
||||
#include "parser/analyze.h"
|
||||
#include "parser/parsetree.h"
|
||||
#include "parser/scanner.h"
|
||||
#include "parser/scansup.h"
|
||||
#include "pgstat.h"
|
||||
#include "storage/fd.h"
|
||||
#include "storage/ipc.h"
|
||||
|
@ -12,11 +12,11 @@
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/heapam.h"
|
||||
#include "access/htup_details.h"
|
||||
#include "access/relation.h"
|
||||
#include "access/visibilitymap.h"
|
||||
#include "access/xloginsert.h"
|
||||
#include "catalog/pg_am_d.h"
|
||||
#include "catalog/pg_proc_d.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "utils/acl.h"
|
||||
|
@ -19,12 +19,10 @@
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/proc.h"
|
||||
#include "storage/procarray.h"
|
||||
#include "storage/read_stream.h"
|
||||
#include "storage/smgr.h"
|
||||
#include "utils/rel.h"
|
||||
#include "utils/snapmgr.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -38,7 +38,6 @@
|
||||
#include "px-crypt.h"
|
||||
#include "px.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/uuid.h"
|
||||
#include "varatt.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/procarray.h"
|
||||
#include "utils/acl.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/rel.h"
|
||||
#include "utils/snapmgr.h"
|
||||
#include "utils/varlena.h"
|
||||
|
@ -14,21 +14,15 @@
|
||||
|
||||
#include "access/heapam.h"
|
||||
#include "access/htup_details.h"
|
||||
#include "access/multixact.h"
|
||||
#include "access/relation.h"
|
||||
#include "access/transam.h"
|
||||
#include "access/visibilitymap.h"
|
||||
#include "access/xact.h"
|
||||
#include "catalog/namespace.h"
|
||||
#include "catalog/pg_am_d.h"
|
||||
#include "commands/vacuum.h"
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/freespace.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "storage/procarray.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
PG_FUNCTION_INFO_V1(pgstattuple_approx);
|
||||
PG_FUNCTION_INFO_V1(pgstattuple_approx_v1_5);
|
||||
|
@ -32,14 +32,11 @@
|
||||
#include "access/htup_details.h"
|
||||
#include "access/nbtree.h"
|
||||
#include "access/relation.h"
|
||||
#include "access/table.h"
|
||||
#include "catalog/namespace.h"
|
||||
#include "catalog/pg_am.h"
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/rel.h"
|
||||
#include "utils/varlena.h"
|
||||
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include "miscadmin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/varlena.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include <poll.h>
|
||||
#endif
|
||||
|
||||
#include "access/htup_details.h"
|
||||
#include "access/xact.h"
|
||||
#include "catalog/pg_user_mapping.h"
|
||||
#include "commands/defrem.h"
|
||||
@ -27,13 +26,10 @@
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
#include "postgres_fdw.h"
|
||||
#include "storage/fd.h"
|
||||
#include "storage/latch.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/datetime.h"
|
||||
#include "utils/hsearch.h"
|
||||
#include "utils/inval.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/syscache.h"
|
||||
|
||||
/*
|
||||
|
@ -47,8 +47,6 @@
|
||||
#include "catalog/pg_ts_dict.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "commands/defrem.h"
|
||||
#include "commands/tablecmds.h"
|
||||
#include "nodes/makefuncs.h"
|
||||
#include "nodes/nodeFuncs.h"
|
||||
#include "nodes/plannodes.h"
|
||||
#include "optimizer/optimizer.h"
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include "commands/extension.h"
|
||||
#include "libpq/libpq-be.h"
|
||||
#include "postgres_fdw.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/varlena.h"
|
||||
|
||||
|
@ -17,11 +17,9 @@
|
||||
#include "access/htup_details.h"
|
||||
#include "access/sysattr.h"
|
||||
#include "access/table.h"
|
||||
#include "catalog/pg_class.h"
|
||||
#include "catalog/pg_opfamily.h"
|
||||
#include "commands/defrem.h"
|
||||
#include "commands/explain.h"
|
||||
#include "commands/vacuum.h"
|
||||
#include "executor/execAsync.h"
|
||||
#include "foreign/fdwapi.h"
|
||||
#include "funcapi.h"
|
||||
@ -29,7 +27,6 @@
|
||||
#include "nodes/makefuncs.h"
|
||||
#include "nodes/nodeFuncs.h"
|
||||
#include "optimizer/appendinfo.h"
|
||||
#include "optimizer/clauses.h"
|
||||
#include "optimizer/cost.h"
|
||||
#include "optimizer/inherit.h"
|
||||
#include "optimizer/optimizer.h"
|
||||
|
@ -19,7 +19,7 @@ OH, me, I'm Terry Mackintosh <terry@terrym.com>
|
||||
#include "catalog/pg_type.h"
|
||||
#include "commands/trigger.h"
|
||||
#include "executor/spi.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -38,10 +38,10 @@
|
||||
#include "catalog/pg_type.h"
|
||||
#include "common/pg_prng.h"
|
||||
#include "executor/spi.h"
|
||||
#include "fmgr.h"
|
||||
#include "funcapi.h"
|
||||
#include "lib/stringinfo.h"
|
||||
#include "miscadmin.h"
|
||||
#include "tablefunc.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -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 "access/relscan.h"
|
||||
#include "access/tsmapi.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "miscadmin.h"
|
||||
|
@ -26,7 +26,6 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "access/relscan.h"
|
||||
#include "access/tsmapi.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "miscadmin.h"
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "catalog/namespace.h"
|
||||
#include "catalog/pg_ts_dict.h"
|
||||
#include "commands/defrem.h"
|
||||
#include "lib/stringinfo.h"
|
||||
@ -22,7 +21,6 @@
|
||||
#include "tsearch/ts_public.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/regproc.h"
|
||||
#include "utils/syscache.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -11,7 +11,6 @@
|
||||
#include "fmgr.h"
|
||||
#include "funcapi.h"
|
||||
#include "lib/stringinfo.h"
|
||||
#include "miscadmin.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/xml.h"
|
||||
|
||||
|
@ -7,10 +7,7 @@
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "executor/spi.h"
|
||||
#include "fmgr.h"
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/xml.h"
|
||||
|
||||
|
Reference in New Issue
Block a user