Skip to content

Commit 05fdeda

Browse files
committed
Clean up #included files in src/include directories (apache#1518)
Cleaned up #included files in the .h files in the src/include directories. Additionally, deleted 1 unnecessary header file. modified: src/include/catalog/ag_catalog.h modified: src/include/catalog/ag_graph.h modified: src/include/catalog/ag_label.h modified: src/include/catalog/ag_namespace.h modified: src/include/commands/graph_commands.h modified: src/include/commands/label_commands.h modified: src/include/executor/cypher_executor.h modified: src/include/executor/cypher_utils.h modified: src/include/nodes/ag_nodes.h modified: src/include/nodes/cypher_copyfuncs.h modified: src/include/nodes/cypher_nodes.h modified: src/include/nodes/cypher_outfuncs.h modified: src/include/nodes/cypher_readfuncs.h modified: src/include/optimizer/cypher_createplan.h modified: src/include/optimizer/cypher_pathnode.h modified: src/include/parser/cypher_clause.h modified: src/include/parser/cypher_expr.h modified: src/include/parser/cypher_gram.h modified: src/include/parser/cypher_item.h modified: src/include/parser/cypher_parse_node.h modified: src/include/parser/cypher_parser.h modified: src/include/parser/cypher_transform_entity.h modified: src/include/utils/ag_cache.h modified: src/include/utils/ag_float8_supp.h modified: src/include/utils/ag_func.h modified: src/include/utils/age_global_graph.h modified: src/include/utils/agtype.h modified: src/include/utils/agtype_parser.h modified: src/include/utils/agtype_raw.h modified: src/include/utils/graphid.h modified: src/include/utils/load/ag_load_edges.h modified: src/include/utils/load/ag_load_labels.h modified: src/include/utils/load/age_load.h deleted: src/include/utils/ag_load.h
1 parent 4e2e336 commit 05fdeda

35 files changed

Lines changed: 20 additions & 280 deletions

src/backend/utils/load/age_load.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "postgres.h"
2121

22+
#include "access/xact.h"
2223
#include "utils/load/ag_load_edges.h"
2324
#include "utils/load/ag_load_labels.h"
2425
#include "utils/load/age_load.h"

src/include/catalog/ag_catalog.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "postgres.h"
2424

2525
#include "utils/agtype.h"
26-
#include "utils/graphid.h"
2726

2827
void object_access_hook_init(void);
2928
void object_access_hook_fini(void);

src/include/catalog/ag_graph.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_AG_GRAPH_H
2121
#define AG_AG_GRAPH_H
2222

23-
#include "postgres.h"
24-
2523
#include "catalog/ag_catalog.h"
2624

2725
#define Anum_ag_graph_oid 1

src/include/catalog/ag_label.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@
2020
#ifndef AG_AG_LABEL_H
2121
#define AG_AG_LABEL_H
2222

23-
#include "postgres.h"
24-
2523
#include "nodes/execnodes.h"
2624

27-
#include "catalog/ag_catalog.h"
28-
2925
#define Anum_ag_label_vertex_table_id 1
3026
#define Anum_ag_label_vertex_table_properties 2
3127

src/include/catalog/ag_namespace.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_AG_NAMESPACE_H
2121
#define AG_AG_NAMESPACE_H
2222

23-
#include "postgres.h"
24-
2523
Oid ag_catalog_namespace_id(void);
2624
Oid pg_catalog_namespace_id(void);
2725

src/include/commands/graph_commands.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_GRAPH_COMMANDS_H
2121
#define AG_GRAPH_COMMANDS_H
2222

23-
#include "postgres.h"
24-
2523
Datum create_graph(PG_FUNCTION_ARGS);
2624

27-
#endif
25+
#endif

src/include/commands/label_commands.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AG_LABEL_COMMANDS_H
2121
#define AG_LABEL_COMMANDS_H
2222

23-
#include "postgres.h"
24-
2523
#define LABEL_TYPE_VERTEX 'v'
2624
#define LABEL_TYPE_EDGE 'e'
2725

src/include/executor/cypher_executor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#define AG_CYPHER_EXECUTOR_H
2222

2323
#include "nodes/extensible.h"
24-
#include "nodes/nodes.h"
25-
#include "nodes/plannodes.h"
2624

2725
#define DELETE_SCAN_STATE_NAME "Cypher Delete"
2826
#define SET_SCAN_STATE_NAME "Cypher Set"

src/include/executor/cypher_utils.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
#define AG_CYPHER_UTILS_H
2222

2323
#include "access/heapam.h"
24-
#include "access/table.h"
25-
#include "access/tableam.h"
26-
#include "nodes/execnodes.h"
27-
#include "nodes/extensible.h"
28-
#include "nodes/nodes.h"
29-
#include "nodes/plannodes.h"
3024

3125
#include "nodes/cypher_nodes.h"
3226
#include "utils/agtype.h"

src/include/nodes/ag_nodes.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
#ifndef AG_AG_NODES_H
2121
#define AG_AG_NODES_H
2222

23-
#include "postgres.h"
24-
2523
#include "nodes/extensible.h"
26-
#include "nodes/nodes.h"
2724

2825
// This list must match node_names and node_methods.
2926
typedef enum ag_node_tag

0 commit comments

Comments
 (0)