PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
prep.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * prep.h
4 * prototypes for files in optimizer/prep/
5 *
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/optimizer/prep.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef PREP_H
15#define PREP_H
16
17#include "nodes/pathnodes.h"
18#include "nodes/plannodes.h"
19
20
21/*
22 * prototypes for prepjointree.c
23 */
33extern Relids get_relids_in_jointree(Node *jtnode, bool include_outer_joins,
34 bool include_inner_joins);
35extern Relids get_relids_for_join(Query *query, int joinrelid);
36
37/*
38 * prototypes for preptlist.c
39 */
41
43
44extern PlanRowMark *get_plan_rowmark(List *rowmarks, Index rtindex);
45
46/*
47 * prototypes for prepagg.c
48 */
49extern void get_agg_clause_costs(PlannerInfo *root, AggSplit aggsplit,
50 AggClauseCosts *costs);
51extern void preprocess_aggrefs(PlannerInfo *root, Node *clause);
52
53/*
54 * prototypes for prepunion.c
55 */
57
58#endif /* PREP_H */
unsigned int Index
Definition: c.h:585
AggSplit
Definition: nodes.h:381
RelOptInfo * plan_set_operations(PlannerInfo *root)
Definition: prepunion.c:93
List * extract_update_targetlist_colnos(List *tlist)
Definition: preptlist.c:348
void preprocess_function_rtes(PlannerInfo *root)
Definition: prepjointree.c:914
void preprocess_targetlist(PlannerInfo *root)
Definition: preptlist.c:64
void flatten_simple_union_all(PlannerInfo *root)
void transform_MERGE_to_join(Query *parse)
Definition: prepjointree.c:183
PlanRowMark * get_plan_rowmark(List *rowmarks, Index rtindex)
Definition: preptlist.c:526
void remove_useless_result_rtes(PlannerInfo *root)
void get_agg_clause_costs(PlannerInfo *root, AggSplit aggsplit, AggClauseCosts *costs)
Definition: prepagg.c:559
Query * expand_virtual_generated_columns(PlannerInfo *root)
Definition: prepjointree.c:969
void pull_up_sublinks(PlannerInfo *root)
Definition: prepjointree.c:468
void replace_empty_jointree(Query *parse)
Definition: prepjointree.c:410
Relids get_relids_for_join(Query *query, int joinrelid)
void pull_up_subqueries(PlannerInfo *root)
Relids get_relids_in_jointree(Node *jtnode, bool include_outer_joins, bool include_inner_joins)
void reduce_outer_joins(PlannerInfo *root)
void preprocess_aggrefs(PlannerInfo *root, Node *clause)
Definition: prepagg.c:110
tree ctl root
Definition: radixtree.h:1857
static struct subre * parse(struct vars *v, int stopper, int type, struct state *init, struct state *final)
Definition: regcomp.c:717
Definition: pg_list.h:54
Definition: nodes.h:135