Commit f1312b5e authored by Bruce Momjian's avatar Bruce Momjian

Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and

remove from local *.h files.

Per suggestion from Alvaro.
parent 8b0f0822
/* /*
* contrib/btree_gist/btree_bit.c * contrib/btree_gist/btree_bit.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_var.h" #include "btree_utils_var.h"
#include "utils/bytea.h" #include "utils/bytea.h"
......
/* /*
* contrib/btree_gist/btree_bytea.c * contrib/btree_gist/btree_bytea.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_var.h" #include "btree_utils_var.h"
#include "utils/bytea.h" #include "utils/bytea.h"
......
/* /*
* contrib/btree_gist/btree_cash.c * contrib/btree_gist/btree_cash.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/cash.h" #include "utils/cash.h"
......
/* /*
* contrib/btree_gist/btree_date.c * contrib/btree_gist/btree_date.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/date.h" #include "utils/date.h"
......
/* /*
* contrib/btree_gist/btree_float4.c * contrib/btree_gist/btree_float4.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
......
/* /*
* contrib/btree_gist/btree_float8.c * contrib/btree_gist/btree_float8.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
......
/* /*
* contrib/btree_gist/btree_gist.c * contrib/btree_gist/btree_gist.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
PG_MODULE_MAGIC; PG_MODULE_MAGIC;
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#ifndef __BTREE_GIST_H__ #ifndef __BTREE_GIST_H__
#define __BTREE_GIST_H__ #define __BTREE_GIST_H__
#include "postgres.h"
#include "access/gist.h" #include "access/gist.h"
#include "access/itup.h" #include "access/itup.h"
#include "access/nbtree.h" #include "access/nbtree.h"
......
/* /*
* contrib/btree_gist/btree_inet.c * contrib/btree_gist/btree_inet.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/builtins.h" #include "utils/builtins.h"
......
/* /*
* contrib/btree_gist/btree_int2.c * contrib/btree_gist/btree_int2.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
......
/* /*
* contrib/btree_gist/btree_int4.c * contrib/btree_gist/btree_int4.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
......
/* /*
* contrib/btree_gist/btree_int8.c * contrib/btree_gist/btree_int8.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
......
/* /*
* contrib/btree_gist/btree_interval.c * contrib/btree_gist/btree_interval.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/timestamp.h" #include "utils/timestamp.h"
......
/* /*
* contrib/btree_gist/btree_macaddr.c * contrib/btree_gist/btree_macaddr.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/builtins.h" #include "utils/builtins.h"
......
/* /*
* contrib/btree_gist/btree_numeric.c * contrib/btree_gist/btree_numeric.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include <math.h> #include <math.h>
......
/* /*
* contrib/btree_gist/btree_oid.c * contrib/btree_gist/btree_oid.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
......
/* /*
* contrib/btree_gist/btree_text.c * contrib/btree_gist/btree_text.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_var.h" #include "btree_utils_var.h"
#include "utils/builtins.h" #include "utils/builtins.h"
......
/* /*
* contrib/btree_gist/btree_time.c * contrib/btree_gist/btree_time.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/date.h" #include "utils/date.h"
......
/* /*
* contrib/btree_gist/btree_ts.c * contrib/btree_gist/btree_ts.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/builtins.h" #include "utils/builtins.h"
......
/* /*
* contrib/btree_gist/btree_utils_num.c * contrib/btree_gist/btree_utils_num.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include "btree_utils_num.h" #include "btree_utils_num.h"
#include "utils/cash.h" #include "utils/cash.h"
......
/* /*
* contrib/btree_gist/btree_utils_var.c * contrib/btree_gist/btree_utils_var.c
*/ */
#include "postgres.h"
#include "btree_gist.h" #include "btree_gist.h"
#include <math.h> #include <math.h>
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* contrib/ltree/crc32.c */ /* contrib/ltree/crc32.c */
#include "postgres.h"
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
#ifndef __LTREE_H__ #ifndef __LTREE_H__
#define __LTREE_H__ #define __LTREE_H__
#include "postgres.h"
#include "fmgr.h" #include "fmgr.h"
#include "tsearch/ts_locale.h" #include "tsearch/ts_locale.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/check.c * contrib/pg_upgrade/check.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/controldata.c * contrib/pg_upgrade/controldata.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include <ctype.h> #include <ctype.h>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/dump.c * contrib/pg_upgrade/dump.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/exec.c * contrib/pg_upgrade/exec.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include <fcntl.h> #include <fcntl.h>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/file.c * contrib/pg_upgrade/file.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include <fcntl.h> #include <fcntl.h>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/function.c * contrib/pg_upgrade/function.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include "access/transam.h" #include "access/transam.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/info.c * contrib/pg_upgrade/info.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include "access/transam.h" #include "access/transam.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/option.c * contrib/pg_upgrade/option.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include "getopt_long.h" #include "getopt_long.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/page.c * contrib/pg_upgrade/page.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include "storage/bufpage.h" #include "storage/bufpage.h"
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#ifdef HAVE_LANGINFO_H #ifdef HAVE_LANGINFO_H
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
* contrib/pg_upgrade/pg_upgrade.h * contrib/pg_upgrade/pg_upgrade.h
*/ */
#include "postgres.h"
#include <unistd.h> #include <unistd.h>
#include <assert.h> #include <assert.h>
#include <dirent.h> #include <dirent.h>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/relfilenode.c * contrib/pg_upgrade/relfilenode.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include "catalog/pg_class.h" #include "catalog/pg_class.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/server.c * contrib/pg_upgrade/server.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/tablespace.c * contrib/pg_upgrade/tablespace.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
static void get_tablespace_paths(void); static void get_tablespace_paths(void);
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/util.c * contrib/pg_upgrade/util.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include <signal.h> #include <signal.h>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/version.c * contrib/pg_upgrade/version.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include "access/transam.h" #include "access/transam.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* contrib/pg_upgrade/version_old_8_3.c * contrib/pg_upgrade/version_old_8_3.c
*/ */
#include "postgres.h"
#include "pg_upgrade.h" #include "pg_upgrade.h"
#include "access/transam.h" #include "access/transam.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