Address various header changes

Certain PostgreSQL 10 changes require modifications to our includes:

  * pg_sequence's interace has been refactored into its own file
  * textToQualifiedNameList is now in utils/varlena.h
  * pg_getnameinfo_all is now in common/ip.h
  * stringToQualifiedNameList is now in utils/regproc.h
pull/1439/head
Jason Petersen 2017-04-19 20:44:54 -06:00
parent 300349e646
commit cf7bfdb22b
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
5 changed files with 17 additions and 0 deletions

View File

@ -60,6 +60,9 @@
#include "utils/relcache.h"
#include "utils/ruleutils.h"
#include "utils/tqual.h"
#if (PG_VERSION_NUM >= 100000)
#include "utils/varlena.h"
#endif
/* Shard related configuration */

View File

@ -19,7 +19,11 @@
#include "distributed/metadata_cache.h"
#include "distributed/multi_client_executor.h"
#include "libpq/hba.h"
#if (PG_VERSION_NUM >= 100000)
#include "common/ip.h"
#else
#include "libpq/ip.h"
#endif
#include "libpq/libpq-be.h"
#include "postmaster/postmaster.h"
#include "storage/fd.h"

View File

@ -47,6 +47,9 @@
#include "utils/builtins.h"
#include "utils/fmgroids.h"
#include "utils/lsyscache.h"
#if (PG_VERSION_NUM >= 100000)
#include "utils/regproc.h"
#endif
#include "utils/rel.h"
#include "utils/syscache.h"
#include "utils/tqual.h"

View File

@ -42,6 +42,10 @@
#include "tcop/utility.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#if (PG_VERSION_NUM >= 100000)
#include "utils/regproc.h"
#include "utils/varlena.h"
#endif
/* Config variable managed via guc.c */

View File

@ -14,6 +14,9 @@
#include "postgres.h" /* IWYU pragma: keep */
#include "c.h"
#if (PG_VERSION_NUM >= 100000)
#include "catalog/pg_sequence.h"
#endif
#include "commands/sequence.h"
#include "lib/stringinfo.h"
#include "nodes/parsenodes.h"