summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-03-10 10:22:52 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-03-10 10:27:00 +0100
commit3c173a53a825075f3efe32b9917eff5063e81f4d (patch)
treeb567cad953a950f079d7864cb265819e6ff969ec /src/include/commands
parent17b9e7f9fe238eeb5f6b40061b444ebf28d9e06f (diff)
downloadpostgresql-3c173a53a825075f3efe32b9917eff5063e81f4d.tar.gz
Remove utils/acl.h from catalog/objectaddress.h
The need for this was removed by 8b9e9644dc6a9bd4b7a97950e6212f63880cf18b. A number of files now need to include utils/acl.h or parser/parse_node.h explicitly where they previously got it indirectly somehow. Since parser/parse_node.h already includes nodes/parsenodes.h, the latter is then removed where the former was added. Also, remove nodes/pg_list.h from objectaddress.h, since that's included via nodes/parsenodes.h. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com> Discussion: https://www.postgresql.org/message-id/flat/7601e258-26b2-8481-36d0-dc9dca6f28f1%402ndquadrant.com
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/collationcmds.h2
-rw-r--r--src/include/commands/createas.h2
-rw-r--r--src/include/commands/dbcommands.h2
-rw-r--r--src/include/commands/defrem.h2
-rw-r--r--src/include/commands/extension.h2
-rw-r--r--src/include/commands/vacuum.h2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/include/commands/collationcmds.h b/src/include/commands/collationcmds.h
index df7d1d498c..373b85374c 100644
--- a/src/include/commands/collationcmds.h
+++ b/src/include/commands/collationcmds.h
@@ -16,7 +16,7 @@
#define COLLATIONCMDS_H
#include "catalog/objectaddress.h"
-#include "nodes/parsenodes.h"
+#include "parser/parse_node.h"
extern ObjectAddress DefineCollation(ParseState *pstate, List *names, List *parameters, bool if_not_exists);
extern void IsThereCollationInNamespace(const char *collname, Oid nspOid);
diff --git a/src/include/commands/createas.h b/src/include/commands/createas.h
index 5615b5ecac..7629230254 100644
--- a/src/include/commands/createas.h
+++ b/src/include/commands/createas.h
@@ -16,7 +16,7 @@
#include "catalog/objectaddress.h"
#include "nodes/params.h"
-#include "nodes/parsenodes.h"
+#include "parser/parse_node.h"
#include "tcop/dest.h"
#include "utils/queryenvironment.h"
diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h
index f8f6d5ffd0..fb8ccfdbf5 100644
--- a/src/include/commands/dbcommands.h
+++ b/src/include/commands/dbcommands.h
@@ -17,7 +17,7 @@
#include "access/xlogreader.h"
#include "catalog/objectaddress.h"
#include "lib/stringinfo.h"
-#include "nodes/parsenodes.h"
+#include "parser/parse_node.h"
extern Oid createdb(ParseState *pstate, const CreatedbStmt *stmt);
extern void dropdb(const char *dbname, bool missing_ok, bool force);
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h
index 5cd6975a22..08ca6ac31e 100644
--- a/src/include/commands/defrem.h
+++ b/src/include/commands/defrem.h
@@ -16,7 +16,7 @@
#include "catalog/objectaddress.h"
#include "nodes/params.h"
-#include "nodes/parsenodes.h"
+#include "parser/parse_node.h"
#include "tcop/dest.h"
#include "utils/array.h"
diff --git a/src/include/commands/extension.h b/src/include/commands/extension.h
index 7923cdc250..8b06df02a7 100644
--- a/src/include/commands/extension.h
+++ b/src/include/commands/extension.h
@@ -15,7 +15,7 @@
#define EXTENSION_H
#include "catalog/objectaddress.h"
-#include "nodes/parsenodes.h"
+#include "parser/parse_node.h"
/*
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h
index c27d255d8d..2779bea5c9 100644
--- a/src/include/commands/vacuum.h
+++ b/src/include/commands/vacuum.h
@@ -18,7 +18,7 @@
#include "catalog/pg_class.h"
#include "catalog/pg_statistic.h"
#include "catalog/pg_type.h"
-#include "nodes/parsenodes.h"
+#include "parser/parse_node.h"
#include "storage/buf.h"
#include "storage/lock.h"
#include "utils/relcache.h"