PostgreSQL Source Code git master
Loading...
Searching...
No Matches
plancat.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * plancat.h
4 * prototypes for plancat.c.
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/optimizer/plancat.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef PLANCAT_H
15#define PLANCAT_H
16
17#include "nodes/pathnodes.h"
18#include "utils/relcache.h"
19
21 bool inhparent, RelOptInfo *rel);
22
24
26
28
30 BlockNumber *pages, double *tuples, double *allvisfrac);
31
34
37
39
40extern bool has_unique_index(RelOptInfo *rel, AttrNumber attno);
41
44 List *args,
45 Oid inputcollid,
46 int varRelid);
47
50 List *args,
51 Oid inputcollid,
52 JoinType jointype,
53 SpecialJoinInfo *sjinfo);
54
56 Oid funcid,
57 List *args,
58 Oid inputcollid,
59 bool is_join,
60 int varRelid,
61 JoinType jointype,
62 SpecialJoinInfo *sjinfo);
63
64extern void add_function_cost(PlannerInfo *root, Oid funcid, Node *node,
65 QualCost *cost);
66
67extern double get_function_rows(PlannerInfo *root, Oid funcid, Node *node);
68
69extern bool has_row_triggers(PlannerInfo *root, Index rti, CmdType event);
70
71extern bool has_transition_tables(PlannerInfo *root, Index rti, CmdType event);
72
74
77
78#endif /* PLANCAT_H */
int16 AttrNumber
Definition attnum.h:21
uint32 BlockNumber
Definition block.h:31
int32_t int32
Definition c.h:575
unsigned int Index
Definition c.h:661
CmdType
Definition nodes.h:273
double Selectivity
Definition nodes.h:260
JoinType
Definition nodes.h:298
void estimate_rel_size(Relation rel, int32 *attr_widths, BlockNumber *pages, double *tuples, double *allvisfrac)
Definition plancat.c:1305
int32 get_rel_data_width(Relation rel, int32 *attr_widths)
Definition plancat.c:1430
bool has_stored_generated_columns(PlannerInfo *root, Index rti)
Definition plancat.c:2610
void get_relation_notnullatts(PlannerInfo *root, Relation relation)
Definition plancat.c:690
bool relation_excluded_by_constraints(PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte)
Definition plancat.c:1849
double get_function_rows(PlannerInfo *root, Oid funcid, Node *node)
Definition plancat.c:2416
bool has_row_triggers(PlannerInfo *root, Index rti, CmdType event)
Definition plancat.c:2506
void add_function_cost(PlannerInfo *root, Oid funcid, Node *node, QualCost *cost)
Definition plancat.c:2355
List * build_physical_tlist(PlannerInfo *root, RelOptInfo *rel)
Definition plancat.c:2039
Selectivity restriction_selectivity(PlannerInfo *root, Oid operatorid, List *args, Oid inputcollid, int varRelid)
Definition plancat.c:2222
int32 get_relation_data_width(Oid relid, int32 *attr_widths)
Definition plancat.c:1472
bool has_unique_index(RelOptInfo *rel, AttrNumber attno)
Definition plancat.c:2474
Bitmapset * find_relation_notnullatts(PlannerInfo *root, Oid relid)
Definition plancat.c:763
bool has_transition_tables(PlannerInfo *root, Index rti, CmdType event)
Definition plancat.c:2556
Selectivity join_selectivity(PlannerInfo *root, Oid operatorid, List *args, Oid inputcollid, JoinType jointype, SpecialJoinInfo *sjinfo)
Definition plancat.c:2261
Selectivity function_selectivity(PlannerInfo *root, Oid funcid, List *args, Oid inputcollid, bool is_join, int varRelid, JoinType jointype, SpecialJoinInfo *sjinfo)
Definition plancat.c:2301
Bitmapset * get_dependent_generated_columns(PlannerInfo *root, Index rti, Bitmapset *target_cols)
Definition plancat.c:2637
void get_relation_info(PlannerInfo *root, Oid relationObjectId, bool inhparent, RelOptInfo *rel)
Definition plancat.c:121
List * infer_arbiter_indexes(PlannerInfo *root)
Definition plancat.c:802
unsigned int Oid
static int fb(int x)
tree ctl root
Definition radixtree.h:1857
Definition pg_list.h:54
Definition nodes.h:135