-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathas_sql.h
More file actions
40 lines (30 loc) · 959 Bytes
/
as_sql.h
File metadata and controls
40 lines (30 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef AS_SQL_H
#define AS_SQL_H
#include "postgres.h"
#include "nodes/bitmapset.h"
#include "nodes/primnodes.h"
#include "nodes/value.h"
#include "nodes/parsenodes.h"
#include "utils/tuplestore.h"
#define PG_AEROSPIKE_EXTENSION_NAME "aerospike"
typedef enum PlannerType
{
PLANNER_INVALID_FIRST = 0,
PLANNER_TYPE_AEROSPIKE = 1,
PLANNER_TYPE_POSTGRES = 2,
PLANNER_TYPE_COMP
} PlannerType;
typedef struct compile_result
{
Oid tableid;
char *udf_func_name;
char *udf_module_name;
int listlen;
}compile_result;
void aerospike_fdw_init(void);
void aerospike_fdw_fini(void);
compile_result *as_sql_compile(Query *query);
compile_result *as_sql_getcachecompileresult(const char *str_querykey);
bool as_sql_putcachecompileresutl(const char *str_querykey, compile_result *as_compileresult);
compile_result *as_compileudf_file(List *whereColumnList, List *targetList, int listlen, char *clausestr, Oid Foreignid);
#endif /* AS_SQL_H */