diff --git a/src/backend/age.c b/src/backend/age.c index a512f1888..2c016b021 100644 --- a/src/backend/age.c +++ b/src/backend/age.c @@ -17,10 +17,6 @@ * under the License. */ -#include "postgres.h" - -#include "fmgr.h" - #include "catalog/ag_catalog.h" #include "nodes/ag_nodes.h" #include "optimizer/cypher_paths.h" diff --git a/src/backend/parser/cypher_analyze.c b/src/backend/parser/cypher_analyze.c index 890fbaae0..57dd06ab3 100644 --- a/src/backend/parser/cypher_analyze.c +++ b/src/backend/parser/cypher_analyze.c @@ -22,28 +22,20 @@ #include "catalog/pg_type_d.h" #include "nodes/makefuncs.h" #include "nodes/nodeFuncs.h" -#include "nodes/nodes.h" -#include "nodes/parsenodes.h" -#include "nodes/pg_list.h" -#include "nodes/primnodes.h" #include "parser/analyze.h" #include "parser/parse_coerce.h" #include "parser/parse_collate.h" -#include "parser/parse_node.h" #include "parser/parse_relation.h" #include "parser/parse_target.h" #include "parser/parsetree.h" #include "utils/builtins.h" #include "catalog/ag_graph.h" -#include "nodes/ag_nodes.h" #include "parser/cypher_analyze.h" #include "parser/cypher_clause.h" -#include "parser/cypher_parse_node.h" #include "parser/cypher_parser.h" #include "utils/ag_func.h" #include "utils/age_session_info.h" -#include "utils/agtype.h" /* * extra_node is a global variable to this source to store, at the moment, the diff --git a/src/backend/parser/cypher_clause.c b/src/backend/parser/cypher_clause.c index 90f5547bf..e74dcb1e2 100644 --- a/src/backend/parser/cypher_clause.c +++ b/src/backend/parser/cypher_clause.c @@ -24,46 +24,32 @@ #include "postgres.h" -#include "access/sysattr.h" #include "catalog/pg_type_d.h" #include "miscadmin.h" -#include "nodes/makefuncs.h" #include "nodes/nodeFuncs.h" -#include "nodes/nodes.h" -#include "nodes/parsenodes.h" -#include "nodes/pg_list.h" -#include "nodes/primnodes.h" #include "optimizer/var.h" +#include "utils/rel.h" #include "parser/parse_clause.h" #include "parser/parse_coerce.h" #include "parser/parse_collate.h" #include "parser/parse_expr.h" #include "parser/parse_func.h" -#include "parser/parse_node.h" #include "parser/parse_oper.h" #include "parser/parse_relation.h" #include "parser/parse_target.h" #include "parser/parsetree.h" #include "rewrite/rewriteHandler.h" -#include "utils/typcache.h" -#include "utils/lsyscache.h" -#include "utils/rel.h" #include "catalog/ag_graph.h" #include "catalog/ag_label.h" #include "commands/label_commands.h" -#include "nodes/ag_nodes.h" -#include "nodes/cypher_nodes.h" #include "parser/cypher_clause.h" #include "parser/cypher_expr.h" #include "parser/cypher_item.h" #include "parser/cypher_parse_agg.h" -#include "parser/cypher_parse_node.h" #include "parser/cypher_transform_entity.h" #include "utils/ag_cache.h" #include "utils/ag_func.h" -#include "utils/agtype.h" -#include "utils/graphid.h" #include "utils/ag_guc.h" /* diff --git a/src/backend/parser/cypher_expr.c b/src/backend/parser/cypher_expr.c index 36e8862c0..ec4de38fe 100644 --- a/src/backend/parser/cypher_expr.c +++ b/src/backend/parser/cypher_expr.c @@ -24,31 +24,20 @@ #include "postgres.h" -#include "catalog/pg_type.h" #include "miscadmin.h" -#include "nodes/makefuncs.h" +#include "catalog/pg_type_d.h" #include "nodes/nodeFuncs.h" -#include "nodes/nodes.h" -#include "nodes/parsenodes.h" -#include "nodes/value.h" -#include "optimizer/tlist.h" #include "parser/parse_coerce.h" #include "parser/parse_collate.h" -#include "parser/parse_expr.h" #include "parser/parse_func.h" #include "parser/cypher_clause.h" -#include "parser/parse_node.h" #include "parser/parse_oper.h" #include "parser/parse_relation.h" #include "utils/builtins.h" #include "utils/int8.h" #include "utils/lsyscache.h" -#include "utils/syscache.h" -#include "commands/label_commands.h" -#include "nodes/cypher_nodes.h" #include "parser/cypher_expr.h" -#include "parser/cypher_parse_node.h" #include "parser/cypher_transform_entity.h" #include "utils/ag_func.h" #include "utils/agtype.h" diff --git a/src/backend/parser/cypher_gram.y b/src/backend/parser/cypher_gram.y index 6f0c00594..79cf628dc 100644 --- a/src/backend/parser/cypher_gram.y +++ b/src/backend/parser/cypher_gram.y @@ -21,16 +21,8 @@ #include "postgres.h" #include "nodes/makefuncs.h" -#include "nodes/nodes.h" -#include "nodes/parsenodes.h" -#include "nodes/pg_list.h" -#include "nodes/primnodes.h" -#include "nodes/value.h" #include "parser/parser.h" -#include "nodes/ag_nodes.h" -#include "nodes/cypher_nodes.h" -#include "parser/ag_scanner.h" #include "parser/cypher_gram.h" #include "parser/cypher_parse_node.h" #include "parser/scansup.h" diff --git a/src/backend/parser/cypher_item.c b/src/backend/parser/cypher_item.c index 6eabb60e7..00dba6133 100644 --- a/src/backend/parser/cypher_item.c +++ b/src/backend/parser/cypher_item.c @@ -24,19 +24,12 @@ #include "postgres.h" -#include "access/attnum.h" #include "nodes/makefuncs.h" -#include "nodes/nodes.h" -#include "nodes/parsenodes.h" -#include "nodes/pg_list.h" -#include "nodes/primnodes.h" -#include "parser/parse_node.h" #include "parser/parse_relation.h" #include "parser/parse_target.h" #include "parser/cypher_expr.h" #include "parser/cypher_item.h" -#include "parser/cypher_parse_node.h" static List *ExpandAllTables(ParseState *pstate, int location); static List *expand_rel_attrs(ParseState *pstate, RangeTblEntry *rte, diff --git a/src/backend/parser/cypher_keywords.c b/src/backend/parser/cypher_keywords.c index 5ed120288..6075030ac 100644 --- a/src/backend/parser/cypher_keywords.c +++ b/src/backend/parser/cypher_keywords.c @@ -24,12 +24,8 @@ #include "postgres.h" -#include "access/attnum.h" -#include "access/htup.h" -#include "access/tupdesc.h" -#include "catalog/pg_type.h" +#include "catalog/pg_type_d.h" #include "common/keywords.h" -#include "fmgr.h" #include "funcapi.h" #include "parser/cypher_gram.h" diff --git a/src/backend/parser/cypher_parse_node.c b/src/backend/parser/cypher_parse_node.c index 307ad5be0..545790d63 100644 --- a/src/backend/parser/cypher_parse_node.c +++ b/src/backend/parser/cypher_parse_node.c @@ -25,8 +25,6 @@ #include "postgres.h" #include "mb/pg_wchar.h" -#include "nodes/primnodes.h" -#include "parser/parse_node.h" #include "parser/cypher_parse_node.h" diff --git a/src/backend/parser/cypher_parser.c b/src/backend/parser/cypher_parser.c index 03afff77e..d648c1b0e 100644 --- a/src/backend/parser/cypher_parser.c +++ b/src/backend/parser/cypher_parser.c @@ -19,11 +19,8 @@ #include "postgres.h" -#include "common/keywords.h" -#include "nodes/pg_list.h" #include "parser/scansup.h" -#include "parser/ag_scanner.h" #include "parser/cypher_gram.h" #include "parser/cypher_keywords.h" #include "parser/cypher_parser.h"