Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/include/catalog/ag_catalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "postgres.h"

#include "utils/agtype.h"
#include "utils/graphid.h"

void object_access_hook_init(void);
void object_access_hook_fini(void);
Expand Down
2 changes: 0 additions & 2 deletions src/include/catalog/ag_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef AG_AG_GRAPH_H
#define AG_AG_GRAPH_H

#include "postgres.h"

#include "catalog/ag_catalog.h"

#define Anum_ag_graph_oid 1
Expand Down
4 changes: 0 additions & 4 deletions src/include/catalog/ag_label.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@
#ifndef AG_AG_LABEL_H
#define AG_AG_LABEL_H

#include "postgres.h"

#include "nodes/execnodes.h"

#include "catalog/ag_catalog.h"

#define Anum_ag_label_vertex_table_id 1
#define Anum_ag_label_vertex_table_properties 2

Expand Down
2 changes: 0 additions & 2 deletions src/include/catalog/ag_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef AG_AG_NAMESPACE_H
#define AG_AG_NAMESPACE_H

#include "postgres.h"

Oid ag_catalog_namespace_id(void);
Oid pg_catalog_namespace_id(void);

Expand Down
4 changes: 1 addition & 3 deletions src/include/commands/graph_commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef AG_GRAPH_COMMANDS_H
#define AG_GRAPH_COMMANDS_H

#include "postgres.h"

Datum create_graph(PG_FUNCTION_ARGS);

#endif
#endif
2 changes: 0 additions & 2 deletions src/include/commands/label_commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef AG_LABEL_COMMANDS_H
#define AG_LABEL_COMMANDS_H

#include "postgres.h"

#define LABEL_TYPE_VERTEX 'v'
#define LABEL_TYPE_EDGE 'e'

Expand Down
2 changes: 0 additions & 2 deletions src/include/executor/cypher_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#define AG_CYPHER_EXECUTOR_H

#include "nodes/extensible.h"
#include "nodes/nodes.h"
#include "nodes/plannodes.h"

#define DELETE_SCAN_STATE_NAME "Cypher Delete"
#define SET_SCAN_STATE_NAME "Cypher Set"
Expand Down
6 changes: 0 additions & 6 deletions src/include/executor/cypher_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
#define AG_CYPHER_UTILS_H

#include "access/heapam.h"
#include "access/table.h"
#include "access/tableam.h"
#include "nodes/execnodes.h"
#include "nodes/extensible.h"
#include "nodes/nodes.h"
#include "nodes/plannodes.h"

#include "nodes/cypher_nodes.h"
#include "utils/agtype.h"
Expand Down
3 changes: 0 additions & 3 deletions src/include/nodes/ag_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
#ifndef AG_AG_NODES_H
#define AG_AG_NODES_H

#include "postgres.h"

#include "nodes/extensible.h"
#include "nodes/nodes.h"

// This list must match node_names and node_methods.
typedef enum ag_node_tag
Expand Down
31 changes: 17 additions & 14 deletions src/include/nodes/cypher_copyfuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,36 @@
#ifndef AG_CYPHER_COPYFUNCS_H
#define AG_CYPHER_COPYFUNCS_H

#include "postgres.h"

#include "nodes/nodes.h"

/*
* Functions that let AGE's ExtensibleNodes be compatible with
* Postgres' copyObject. We assign each node to its copy function
* in the DEFINE_NODE_METHODS and DEFINE_NODE_METHODS_EXTENDED
* macros in ag_nodes.c
*/

void copy_ag_node(ExtensibleNode *newnode,
const ExtensibleNode *oldnode);
void copy_ag_node(ExtensibleNode *newnode, const ExtensibleNode *oldnode);

// create data structures
void copy_cypher_create_target_nodes(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_create_path(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_target_node(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_create_target_nodes(ExtensibleNode *newnode,
const ExtensibleNode *from);
void copy_cypher_create_path(ExtensibleNode *newnode,
const ExtensibleNode *from);
void copy_cypher_target_node(ExtensibleNode *newnode,
const ExtensibleNode *from);

// set/remove data structures
void copy_cypher_update_information(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_update_item(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_update_information(ExtensibleNode *newnode,
const ExtensibleNode *from);
void copy_cypher_update_item(ExtensibleNode *newnode,
const ExtensibleNode *from);

// delete data structures
void copy_cypher_delete_information(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_delete_item(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_delete_information(ExtensibleNode *newnode,
const ExtensibleNode *from);
void copy_cypher_delete_item(ExtensibleNode *newnode,
const ExtensibleNode *from);

// merge data structure
void copy_cypher_merge_information(ExtensibleNode *newnode, const ExtensibleNode *from);
void copy_cypher_merge_information(ExtensibleNode *newnode,
const ExtensibleNode *from);
#endif
6 changes: 0 additions & 6 deletions src/include/nodes/cypher_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
#ifndef AG_CYPHER_NODE_H
#define AG_CYPHER_NODE_H

#include "postgres.h"

#include "nodes/extensible.h"
#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"

#include "nodes/ag_nodes.h"

/* cypher sub patterns */
Expand Down
5 changes: 0 additions & 5 deletions src/include/nodes/cypher_outfuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
#ifndef AG_CYPHER_OUTFUNCS_H
#define AG_CYPHER_OUTFUNCS_H

#include "postgres.h"

#include "nodes/extensible.h"
#include "nodes/nodes.h"

/*
* Serialization functions for AGE's ExtensibleNodes. We assign
* each node to its serialized function in the DEFINE_NODE_METHODS
Expand Down
3 changes: 0 additions & 3 deletions src/include/nodes/cypher_readfuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
#ifndef AG_CYPHER_READFUNCS_H
#define AG_CYPHER_READFUNCS_H

#include "postgres.h"

#include "nodes/extensible.h"
#include "nodes/nodes.h"

/*
* Deserialization functions for AGE's ExtensibleNodes. We assign
Expand Down
3 changes: 0 additions & 3 deletions src/include/optimizer/cypher_createplan.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#ifndef AG_CYPHER_CREATEPLAN_H
#define AG_CYPHER_CREATEPLAN_H

#include "nodes/pg_list.h"
#include "nodes/plannodes.h"

Plan *plan_cypher_create_path(PlannerInfo *root, RelOptInfo *rel,
CustomPath *best_path, List *tlist,
List *clauses, List *custom_plans);
Expand Down
2 changes: 0 additions & 2 deletions src/include/optimizer/cypher_pathnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef AG_CYPHER_PATHNODE_H
#define AG_CYPHER_PATHNODE_H

#include "nodes/pg_list.h"

#define CREATE_PATH_NAME "Cypher Create"
#define SET_PATH_NAME "Cypher Set"
#define DELETE_PATH_NAME "Cypher Delete"
Expand Down
4 changes: 0 additions & 4 deletions src/include/parser/cypher_clause.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
#ifndef AG_CYPHER_CLAUSE_H
#define AG_CYPHER_CLAUSE_H

#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"
#include "parser/parse_node.h"

#include "parser/cypher_parse_node.h"

typedef struct cypher_clause cypher_clause;
Expand Down
3 changes: 0 additions & 3 deletions src/include/parser/cypher_expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
#ifndef AG_CYPHER_EXPR_H
#define AG_CYPHER_EXPR_H

#include "nodes/nodes.h"
#include "parser/parse_node.h"

#include "parser/cypher_parse_node.h"

Node *transform_cypher_expr(cypher_parsestate *cpstate, Node *expr,
Expand Down
1 change: 0 additions & 1 deletion src/include/parser/cypher_gram.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#ifndef AG_CYPHER_GRAM_H
#define AG_CYPHER_GRAM_H

#include "nodes/nodes.h"
#include "nodes/pg_list.h"

#include "parser/ag_scanner.h"
Expand Down
9 changes: 0 additions & 9 deletions src/include/parser/cypher_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@
#ifndef AG_CYPHER_ITEM_H
#define AG_CYPHER_ITEM_H

#include "postgres.h"

#include "nodes/nodes.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h"
#include "parser/parse_node.h"

#include "parser/cypher_parse_node.h"

TargetEntry *transform_cypher_item(cypher_parsestate *cpstate, Node *node,
Node *expr, ParseExprKind expr_kind,
char *colname, bool resjunk);
Expand Down
3 changes: 0 additions & 3 deletions src/include/parser/cypher_parse_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#ifndef AG_CYPHER_PARSE_NODE_H
#define AG_CYPHER_PARSE_NODE_H

#include "nodes/primnodes.h"
#include "parser/parse_node.h"

#include "nodes/cypher_nodes.h"

/*
Expand Down
2 changes: 0 additions & 2 deletions src/include/parser/cypher_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef AG_CYPHER_PARSER_H
#define AG_CYPHER_PARSER_H

#include "nodes/pg_list.h"

List *parse_cypher(const char *s);

#endif
4 changes: 0 additions & 4 deletions src/include/parser/cypher_transform_entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
#ifndef AG_CYPHER_TRANSFORM_ENTITY_H
#define AG_CYPHER_TRANSFORM_ENTITY_H

#include "nodes/primnodes.h"
#include "parser/parse_node.h"

#include "nodes/cypher_nodes.h"
#include "nodes/makefuncs.h"
#include "parser/cypher_parse_node.h"

Expand Down
2 changes: 0 additions & 2 deletions src/include/utils/ag_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef AG_AG_CACHE_H
#define AG_AG_CACHE_H

#include "postgres.h"

// graph_cache_data contains the same fields that ag_graph catalog table has
typedef struct graph_cache_data
{
Expand Down
2 changes: 0 additions & 2 deletions src/include/utils/ag_float8_supp.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#ifndef AG_FLOAT_H
#define AG_FLOAT_H

#include "postgres.h"

bool is_float8_special_number(float8 number);
float8 float8in_internal_null(char *num, char **endptr_p, const char *type_name,
const char *orig_string, bool *is_valid);
Expand Down
2 changes: 0 additions & 2 deletions src/include/utils/ag_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#ifndef AG_AG_FUNC_H
#define AG_AG_FUNC_H

#include "postgres.h"

#define CREATE_CLAUSE_FUNCTION_NAME "_cypher_create_clause"
#define SET_CLAUSE_FUNCTION_NAME "_cypher_set_clause"
#define DELETE_CLAUSE_FUNCTION_NAME "_cypher_delete_clause"
Expand Down
60 changes: 0 additions & 60 deletions src/include/utils/ag_load.h

This file was deleted.

1 change: 0 additions & 1 deletion src/include/utils/age_global_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef AG_AGE_GLOBAL_GRAPH_H
#define AG_AGE_GLOBAL_GRAPH_H

#include "utils/graphid.h"
#include "utils/age_graphid_ds.h"

/*
Expand Down
7 changes: 0 additions & 7 deletions src/include/utils/agtype.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,9 @@
#ifndef AG_AGTYPE_H
#define AG_AGTYPE_H

#include "access/htup_details.h"
#include "fmgr.h"
#include "lib/stringinfo.h"
#include "nodes/pg_list.h"
#include "utils/array.h"
#include "utils/numeric.h"
#include "utils/syscache.h"

#include "catalog/ag_namespace.h"
#include "catalog/pg_type.h"
#include "utils/graphid.h"

/* Tokens used when sequentially processing an agtype value */
Expand Down
2 changes: 0 additions & 2 deletions src/include/utils/agtype_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#ifndef AG_AGTYPE_PARSER_H
#define AG_AGTYPE_PARSER_H

#include "lib/stringinfo.h"

typedef enum
{
AGTYPE_TOKEN_INVALID,
Expand Down
Loading