blob: cca34d8482f7a23c0b86a2fd1d069cf69895fd7f (
plain)
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
|
/*-------------------------------------------------------------------------
*
* pgxcship.h
* Functionalities for the evaluation of expression shippability
* to remote nodes
*
*
* Portions Copyright (c) 1996-2012 PostgreSQL Global Development Group
* Portions Copyright (c) 2010-2012 Postgres-XC Development Group
*
* src/include/optimizer/pgxcship.h
*
*-------------------------------------------------------------------------
*/
#ifndef PGXCSHIP_H
#define PGXCSHIP_H
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
#include "pgxc/locator.h"
/* Determine if query is shippable */
extern ExecNodes *pgxc_is_query_shippable(Query *query, int query_level);
/* Determine if an expression is shippable */
extern bool pgxc_is_expr_shippable(Expr *node, bool *has_aggs);
#endif
|