-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto_index.h
More file actions
68 lines (57 loc) · 1.69 KB
/
Copy pathauto_index.h
File metadata and controls
68 lines (57 loc) · 1.69 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef AUTO_INDEX_H
#define AUTO_INDEX_H
#include "postgres.h"
#include "access/genam.h"
#include "utils/fmgroids.h"
#include "access/htup_details.h"
#include "catalog/pg_class.h"
#include "catalog/pg_index.h"
#include "catalog/namespace.h"
#include "utils/relcache.h"
#include "utils/typcache.h"
#include "catalog/index.h"
#include "access/heapam.h"
#include "utils/syscache.h"
#include "postmaster/interrupt.h"
#include "storage/lwlock.h"
#include "utils/json.h"
#include "utils/jsonb.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
#include "parser/parsetree.h"
#include "utils/rel.h"
/* these headers are used by this particular worker's code */
#include "access/xact.h"
#include "pgstat.h"
#include "utils/acl.h"
#include "utils/snapmgr.h"
#include "fmgr.h"
/* Background worker + process control */
#include "miscadmin.h"
#include "storage/ipc.h"
#include "storage/latch.h"
#include "storage/proc.h"
#include "postmaster/bgworker.h"
/* SPI for executing SQL */
#include "executor/spi.h"
#include "commands/dbcommands.h"
#include "utils/builtins.h"
#include "utils/elog.h"
#include "utils/memutils.h"
#include "utils/lsyscache.h"
#include "tcop/utility.h"
/* StringInfo */
#include "lib/stringinfo.h"
#include "optimizer/planner.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utils/guc.h"
#include <math.h>
#define BUFFER_SIZE 1024
extern planner_hook_type prev_planner_hook;
static PlannedStmt *auto_index_planner_hook(Query *parse, const char *query_string, int cursorOptions, ParamListInfo boundParams);
PGDLLEXPORT void auto_index_worker_main(Datum main_arg);
void start_auto_index_worker(char* query, bool wait_to_finish);
PG_FUNCTION_INFO_V1(auto_index_cleanup);
#endif