33#ifndef HAVE_PLANNERINFO_TYPEDEF
35#define HAVE_PLANNERINFO_TYPEDEF 1
39#ifndef HAVE_INDEXOPTINFO_TYPEDEF
41#define HAVE_INDEXOPTINFO_TYPEDEF 1
43#ifndef HAVE_SPECIALJOININFO_TYPEDEF
45#define HAVE_SPECIALJOININFO_TYPEDEF 1
66 bool use_extended_stats);
77 bool use_extended_stats);
133 bool *hasRowSecurity);
155 Oid result_collation);
187#define PVC_INCLUDE_AGGREGATES 0x0001
188#define PVC_RECURSE_AGGREGATES 0x0002
189#define PVC_INCLUDE_WINDOWFUNCS 0x0004
190#define PVC_RECURSE_WINDOWFUNCS 0x0008
191#define PVC_INCLUDE_PLACEHOLDERS 0x0010
193#define PVC_RECURSE_PLACEHOLDERS 0x0020
PGDLLIMPORT double cpu_operator_cost
bool contain_volatile_functions_not_nextval(Node *clause)
PGDLLIMPORT bool parallel_leader_participation
Expr * canonicalize_qual(Expr *qual, bool is_check)
Expr * expression_planner_with_deps(Expr *expr, List **relationOids, List **invalItems)
Selectivity clause_selectivity_ext(PlannerInfo *root, Node *clause, int varRelid, JoinType jointype, SpecialJoinInfo *sjinfo, bool use_extended_stats)
bool predicate_refuted_by(List *predicate_list, List *clause_list, bool weak)
Bitmapset * pull_varnos(PlannerInfo *root, Node *node)
bool contain_vars_of_level(Node *node, int levelsup)
Node * flatten_group_exprs(PlannerInfo *root, Query *query, Node *node)
PGDLLIMPORT bool enable_distinct_reordering
bool contain_var_clause(Node *node)
SortGroupClause * get_sortgroupref_clause_noerr(Index sortref, List *clauses)
bool is_pseudo_constant_for_index(PlannerInfo *root, Node *expr, IndexOptInfo *index)
bool plan_cluster_use_sort(Oid tableOid, Oid indexOid)
PGDLLIMPORT double parallel_tuple_cost
bool contain_mutable_functions(Node *clause)
SortGroupClause * get_sortgroupref_clause(Index sortref, List *clauses)
Node * estimate_expression_value(PlannerInfo *root, Node *node)
int plan_create_index_workers(Oid tableOid, Oid indexOid)
PGDLLIMPORT double parallel_setup_cost
Selectivity clauselist_selectivity(PlannerInfo *root, List *clauses, int varRelid, JoinType jointype, SpecialJoinInfo *sjinfo)
List * pull_vars_of_level(Node *node, int levelsup)
List * pull_var_clause(Node *node, int flags)
Node * eval_const_expressions(PlannerInfo *root, Node *node)
bool contain_volatile_functions_after_planning(Expr *expr)
Bitmapset * pull_varnos_of_level(PlannerInfo *root, Node *node, int levelsup)
PGDLLIMPORT int debug_parallel_query
bool contain_mutable_functions_after_planning(Expr *expr)
TargetEntry * get_sortgroupclause_tle(SortGroupClause *sgClause, List *targetList)
Selectivity clauselist_selectivity_ext(PlannerInfo *root, List *clauses, int varRelid, JoinType jointype, SpecialJoinInfo *sjinfo, bool use_extended_stats)
Node * flatten_join_alias_vars(PlannerInfo *root, Query *query, Node *node)
List * expand_function_arguments(List *args, bool include_out_arguments, Oid result_type, struct HeapTupleData *func_tuple)
Node * negate_clause(Node *node)
void convert_saop_to_hashed_saop(Node *node)
PGDLLIMPORT double cpu_tuple_cost
List * get_sortgrouplist_exprs(List *sgClauses, List *targetList)
bool predicate_implied_by(List *predicate_list, List *clause_list, bool weak)
PGDLLIMPORT double recursive_worktable_factor
TargetEntry * get_sortgroupref_tle(Index sortref, List *targetList)
void extract_query_dependencies(Node *query, List **relationOids, List **invalItems, bool *hasRowSecurity)
Expr * expression_planner(Expr *expr)
PGDLLIMPORT double cpu_index_tuple_cost
int count_nonjunk_tlist_entries(List *tlist)
void pull_varattnos(Node *node, Index varno, Bitmapset **varattnos)
PGDLLIMPORT double seq_page_cost
int locate_var_of_level(Node *node, int levelsup)
struct PlannedStmt * planner(Query *parse, const char *query_string, int cursorOptions, struct ParamListInfoData *boundParams)
double clamp_row_est(double nrows)
PGDLLIMPORT int effective_cache_size
long clamp_cardinality_to_long(Cardinality x)
PGDLLIMPORT double random_page_cost
int32 clamp_width_est(int64 tuple_width)
Expr * evaluate_expr(Expr *expr, Oid result_type, int32 result_typmod, Oid result_collation)
bool contain_volatile_functions(Node *clause)
Node * get_sortgroupclause_expr(SortGroupClause *sgClause, List *targetList)
Selectivity clause_selectivity(PlannerInfo *root, Node *clause, int varRelid, JoinType jointype, SpecialJoinInfo *sjinfo)
static struct subre * parse(struct vars *v, int stopper, int type, struct state *init, struct state *final)