This is an automated email from the ASF dual-hosted git repository.

rafsun42 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d824a00 Clean up #included files in nodes, executor, & optimizer 
directories (#1509)
9d824a00 is described below

commit 9d824a00e5960ce608e157842de0170b6c42c590
Author: John Gemignani <[email protected]>
AuthorDate: Tue Jan 16 12:34:33 2024 -0800

    Clean up #included files in nodes, executor, & optimizer directories (#1509)
    
    Cleaned up #included files in the .c files in the nodes, executor,
    and optimizer directories.
    
        modified:   src/backend/executor/cypher_create.c
        modified:   src/backend/executor/cypher_delete.c
        modified:   src/backend/executor/cypher_merge.c
        modified:   src/backend/executor/cypher_set.c
        modified:   src/backend/executor/cypher_utils.c
        modified:   src/backend/nodes/ag_nodes.c
        modified:   src/backend/nodes/cypher_copyfuncs.c
        modified:   src/backend/nodes/cypher_outfuncs.c
        modified:   src/backend/optimizer/cypher_createplan.c
        modified:   src/backend/optimizer/cypher_pathnode.c
        modified:   src/backend/optimizer/cypher_paths.c
---
 src/backend/executor/cypher_create.c      | 14 --------------
 src/backend/executor/cypher_delete.c      | 15 ---------------
 src/backend/executor/cypher_merge.c       | 13 -------------
 src/backend/executor/cypher_set.c         | 13 -------------
 src/backend/executor/cypher_utils.c       | 17 -----------------
 src/backend/nodes/ag_nodes.c              |  2 --
 src/backend/nodes/cypher_copyfuncs.c      |  3 ---
 src/backend/nodes/cypher_outfuncs.c       |  4 ----
 src/backend/optimizer/cypher_createplan.c |  5 -----
 src/backend/optimizer/cypher_pathnode.c   |  2 --
 src/backend/optimizer/cypher_paths.c      |  2 --
 11 files changed, 90 deletions(-)

diff --git a/src/backend/executor/cypher_create.c 
b/src/backend/executor/cypher_create.c
index bd2b228e..b85d1b87 100644
--- a/src/backend/executor/cypher_create.c
+++ b/src/backend/executor/cypher_create.c
@@ -19,23 +19,9 @@
 
 #include "postgres.h"
 
-#include "access/heapam.h"
-#include "access/htup_details.h"
-#include "access/xact.h"
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
-#include "nodes/extensible.h"
-#include "nodes/nodes.h"
-#include "nodes/plannodes.h"
-#include "rewrite/rewriteHandler.h"
-#include "utils/rel.h"
-
 #include "catalog/ag_label.h"
 #include "executor/cypher_executor.h"
 #include "executor/cypher_utils.h"
-#include "nodes/cypher_nodes.h"
-#include "utils/agtype.h"
-#include "utils/graphid.h"
 
 static void begin_cypher_create(CustomScanState *node, EState *estate,
                                 int eflags);
diff --git a/src/backend/executor/cypher_delete.c 
b/src/backend/executor/cypher_delete.c
index 2a3b01f3..3c1457f9 100644
--- a/src/backend/executor/cypher_delete.c
+++ b/src/backend/executor/cypher_delete.c
@@ -19,27 +19,12 @@
 
 #include "postgres.h"
 
-#include "access/heapam.h"
-#include "access/htup_details.h"
-#include "access/multixact.h"
-#include "access/table.h"
-#include "access/xact.h"
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
-#include "nodes/extensible.h"
-#include "nodes/nodes.h"
-#include "nodes/plannodes.h"
-#include "parser/parsetree.h"
 #include "storage/bufmgr.h"
-#include "utils/rel.h"
 #include "common/hashfn.h"
 
 #include "catalog/ag_label.h"
 #include "executor/cypher_executor.h"
 #include "executor/cypher_utils.h"
-#include "nodes/cypher_nodes.h"
-#include "utils/agtype.h"
-#include "utils/graphid.h"
 
 static void begin_cypher_delete(CustomScanState *node, EState *estate,
                                 int eflags);
diff --git a/src/backend/executor/cypher_merge.c 
b/src/backend/executor/cypher_merge.c
index cece1eb8..31248c0b 100644
--- a/src/backend/executor/cypher_merge.c
+++ b/src/backend/executor/cypher_merge.c
@@ -19,22 +19,9 @@
 
 #include "postgres.h"
 
-#include "access/htup_details.h"
-#include "access/table.h"
-#include "access/xact.h"
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
-#include "nodes/extensible.h"
-#include "nodes/nodes.h"
-#include "nodes/plannodes.h"
-#include "utils/rel.h"
-
 #include "catalog/ag_label.h"
 #include "executor/cypher_executor.h"
 #include "executor/cypher_utils.h"
-#include "nodes/cypher_nodes.h"
-#include "utils/agtype.h"
-#include "utils/graphid.h"
 
 static void begin_cypher_merge(CustomScanState *node, EState *estate,
                                int eflags);
diff --git a/src/backend/executor/cypher_set.c 
b/src/backend/executor/cypher_set.c
index 44613130..611b6792 100644
--- a/src/backend/executor/cypher_set.c
+++ b/src/backend/executor/cypher_set.c
@@ -19,23 +19,10 @@
 
 #include "postgres.h"
 
-#include "access/heapam.h"
-#include "access/htup_details.h"
-#include "access/xact.h"
-#include "executor/tuptable.h"
-#include "nodes/execnodes.h"
-#include "nodes/extensible.h"
-#include "nodes/nodes.h"
-#include "nodes/plannodes.h"
-#include "rewrite/rewriteHandler.h"
 #include "storage/bufmgr.h"
-#include "utils/rel.h"
 
 #include "executor/cypher_executor.h"
 #include "executor/cypher_utils.h"
-#include "nodes/cypher_nodes.h"
-#include "utils/agtype.h"
-#include "utils/graphid.h"
 
 static void begin_cypher_set(CustomScanState *node, EState *estate,
                                 int eflags);
diff --git a/src/backend/executor/cypher_utils.c 
b/src/backend/executor/cypher_utils.c
index e649c113..41091d66 100644
--- a/src/backend/executor/cypher_utils.c
+++ b/src/backend/executor/cypher_utils.c
@@ -24,30 +24,13 @@
 
 #include "postgres.h"
 
-#include "access/htup_details.h"
-#include "access/sysattr.h"
-#include "access/xact.h"
-#include "access/heapam.h"
-#include "access/multixact.h"
-#include "access/xact.h"
-#include "nodes/extensible.h"
 #include "nodes/makefuncs.h"
-#include "nodes/nodes.h"
-#include "nodes/nodeFuncs.h"
-#include "nodes/plannodes.h"
-#include "parser/parsetree.h"
 #include "parser/parse_relation.h"
-#include "storage/procarray.h"
-#include "utils/rel.h"
 
 #include "catalog/ag_label.h"
 #include "commands/label_commands.h"
-#include "executor/cypher_executor.h"
 #include "executor/cypher_utils.h"
-#include "utils/agtype.h"
 #include "utils/ag_cache.h"
-#include "utils/agtype.h"
-#include "utils/graphid.h"
 
 /*
  * Given the graph name and the label name, create a ResultRelInfo for the 
table
diff --git a/src/backend/nodes/ag_nodes.c b/src/backend/nodes/ag_nodes.c
index dee460b3..73f6154a 100644
--- a/src/backend/nodes/ag_nodes.c
+++ b/src/backend/nodes/ag_nodes.c
@@ -19,8 +19,6 @@
 
 #include "postgres.h"
 
-#include "nodes/extensible.h"
-
 #include "nodes/ag_nodes.h"
 #include "nodes/cypher_copyfuncs.h"
 #include "nodes/cypher_outfuncs.h"
diff --git a/src/backend/nodes/cypher_copyfuncs.c 
b/src/backend/nodes/cypher_copyfuncs.c
index 6c832f89..9453bb52 100644
--- a/src/backend/nodes/cypher_copyfuncs.c
+++ b/src/backend/nodes/cypher_copyfuncs.c
@@ -19,10 +19,7 @@
 
 #include "postgres.h"
 
-#include "nodes/bitmapset.h"
 #include "nodes/extensible.h"
-#include "nodes/nodes.h"
-#include "utils/palloc.h"
 
 #include "nodes/cypher_copyfuncs.h"
 #include "nodes/cypher_nodes.h"
diff --git a/src/backend/nodes/cypher_outfuncs.c 
b/src/backend/nodes/cypher_outfuncs.c
index 9e1a608f..0cf8e815 100644
--- a/src/backend/nodes/cypher_outfuncs.c
+++ b/src/backend/nodes/cypher_outfuncs.c
@@ -19,10 +19,6 @@
 
 #include "postgres.h"
 
-#include "lib/stringinfo.h"
-#include "nodes/extensible.h"
-#include "nodes/nodes.h"
-
 #include "nodes/cypher_nodes.h"
 #include "nodes/cypher_outfuncs.h"
 
diff --git a/src/backend/optimizer/cypher_createplan.c 
b/src/backend/optimizer/cypher_createplan.c
index 0a617c08..fdbcb10b 100644
--- a/src/backend/optimizer/cypher_createplan.c
+++ b/src/backend/optimizer/cypher_createplan.c
@@ -19,11 +19,6 @@
 
 #include "postgres.h"
 
-#include "nodes/extensible.h"
-#include "nodes/nodes.h"
-#include "nodes/pg_list.h"
-#include "nodes/plannodes.h"
-
 #include "executor/cypher_executor.h"
 #include "optimizer/cypher_createplan.h"
 
diff --git a/src/backend/optimizer/cypher_pathnode.c 
b/src/backend/optimizer/cypher_pathnode.c
index fa72c416..60ce5366 100644
--- a/src/backend/optimizer/cypher_pathnode.c
+++ b/src/backend/optimizer/cypher_pathnode.c
@@ -20,8 +20,6 @@
 #include "postgres.h"
 
 #include "nodes/extensible.h"
-#include "nodes/nodes.h"
-#include "nodes/pg_list.h"
 
 #include "optimizer/cypher_createplan.h"
 #include "optimizer/cypher_pathnode.h"
diff --git a/src/backend/optimizer/cypher_paths.c 
b/src/backend/optimizer/cypher_paths.c
index 151abfa4..519501ba 100644
--- a/src/backend/optimizer/cypher_paths.c
+++ b/src/backend/optimizer/cypher_paths.c
@@ -19,8 +19,6 @@
 
 #include "postgres.h"
 
-#include "nodes/parsenodes.h"
-#include "nodes/primnodes.h"
 #include "optimizer/pathnode.h"
 #include "optimizer/paths.h"
 

Reply via email to