Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and
remove from local *.h files. Per suggestion from Alvaro.
This commit is contained in:
parent
8b0f0822fd
commit
f1312b5ed3
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_bit.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_var.h"
|
||||
#include "utils/bytea.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_bytea.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_var.h"
|
||||
#include "utils/bytea.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_cash.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/cash.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_date.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/date.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_float4.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_float8.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_gist.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
@ -4,7 +4,6 @@
|
||||
#ifndef __BTREE_GIST_H__
|
||||
#define __BTREE_GIST_H__
|
||||
|
||||
#include "postgres.h"
|
||||
#include "access/gist.h"
|
||||
#include "access/itup.h"
|
||||
#include "access/nbtree.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_inet.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_int2.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_int4.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_int8.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_interval.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_macaddr.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_numeric.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
|
||||
#include <math.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_oid.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_text.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_var.h"
|
||||
#include "utils/builtins.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_time.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/date.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_ts.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/builtins.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_utils_num.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
#include "btree_utils_num.h"
|
||||
#include "utils/cash.h"
|
||||
|
@ -1,6 +1,8 @@
|
||||
/*
|
||||
* contrib/btree_gist/btree_utils_var.c
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "btree_gist.h"
|
||||
|
||||
#include <math.h>
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
/* contrib/ltree/crc32.c */
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -3,7 +3,6 @@
|
||||
#ifndef __LTREE_H__
|
||||
#define __LTREE_H__
|
||||
|
||||
#include "postgres.h"
|
||||
#include "fmgr.h"
|
||||
#include "tsearch/ts_locale.h"
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/check.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/controldata.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/dump.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/exec.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/file.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/function.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include "access/transam.h"
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/info.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include "access/transam.h"
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/option.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include "getopt_long.h"
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/page.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include "storage/bufpage.h"
|
||||
|
@ -35,6 +35,8 @@
|
||||
|
||||
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#ifdef HAVE_LANGINFO_H
|
||||
|
@ -5,8 +5,6 @@
|
||||
* contrib/pg_upgrade/pg_upgrade.h
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
#include <dirent.h>
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/relfilenode.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include "catalog/pg_class.h"
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/server.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/tablespace.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
static void get_tablespace_paths(void);
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/util.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/version.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include "access/transam.h"
|
||||
|
@ -7,6 +7,8 @@
|
||||
* contrib/pg_upgrade/version_old_8_3.c
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
#include "access/transam.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user