-
Notifications
You must be signed in to change notification settings - Fork 2
/
mv_rewrite.h
44 lines (38 loc) · 1.04 KB
/
mv_rewrite.h
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
/*-------------------------------------------------------------------------
*
* mv_rewrite.h
* Query rewrite for MVs
*
* Portions Copyright (c) 2012-2017, PostgreSQL Global Development Group
*
*-------------------------------------------------------------------------
*/
#ifndef MV_REWRITE_H
#define MV_REWRITE_H
#include "pg_config.h"
#include "lib/stringinfo.h"
#if PG_VERSION_NUM < 120000
#include "nodes/relation.h"
#else
#include "nodes/pathnodes.h"
#endif
#include "utils/relcache.h"
#include "optimizer/planner.h"
#include "libpq-fe.h"
extern void
mv_rewrite_set_join_pathlist_hook (PlannerInfo *root,
RelOptInfo *joinrel,
RelOptInfo *outerrel,
RelOptInfo *innerrel,
JoinType jointype,
JoinPathExtraData *extra);
extern void
mv_rewrite_create_upper_paths_hook (PlannerInfo *root,
UpperRelationKind stage,
RelOptInfo *input_rel,
RelOptInfo *output_rel
#if PG_VERSION_NUM >= 110000
, void *extra
#endif
);
#endif /* MV_REWRITE_H */