76 bool include_noinherit,
78 bool include_partition);
148 if (!(relation->
rd_rel->relkind == RELKIND_FOREIGN_TABLE ||
149 relation->
rd_rel->relkind == RELKIND_PARTITIONED_TABLE))
151 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
152 errmsg(
"cannot open relation \"%s\"",
160 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
161 errmsg(
"cannot access temporary or unlogged relations during recovery")));
168 rel->attr_needed = (
Relids *)
170 rel->attr_widths = (
int32 *)
182 if (!inhparent || relation->
rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
205 if ((inhparent && relation->
rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
209 hasindex = relation->
rd_rel->relhasindex;
227 lmode =
root->simple_rte_array[varno]->rellockmode;
229 foreach(l, indexoidlist)
253 if (!
index->indisvalid)
264 if (
index->indcheckxmin &&
268 root->glob->transientPlan =
true;
282 info->indexkeys = (
int *)
palloc(
sizeof(
int) * ncolumns);
283 info->indexcollations = (
Oid *)
palloc(
sizeof(
Oid) * nkeycolumns);
284 info->opfamily = (
Oid *)
palloc(
sizeof(
Oid) * nkeycolumns);
285 info->opcintype = (
Oid *)
palloc(
sizeof(
Oid) * nkeycolumns);
286 info->canreturn = (
bool *)
palloc(
sizeof(
bool) * ncolumns);
288 for (
i = 0;
i < ncolumns;
i++)
290 info->indexkeys[
i] =
index->indkey.values[
i];
294 for (
i = 0;
i < nkeycolumns;
i++)
307 if (indexRelation->
rd_rel->relkind != RELKIND_PARTITIONED_INDEX)
310 amroutine = indexRelation->
rd_indam;
330 if (info->
relam == BTREE_AM_OID)
338 info->sortopfamily = info->opfamily;
339 info->reverse_sort = (
bool *)
palloc(
sizeof(
bool) * nkeycolumns);
340 info->nulls_first = (
bool *)
palloc(
sizeof(
bool) * nkeycolumns);
342 for (
i = 0;
i < nkeycolumns;
i++)
346 info->reverse_sort[
i] = (opt & INDOPTION_DESC) != 0;
347 info->nulls_first[
i] = (opt & INDOPTION_NULLS_FIRST) != 0;
363 info->sortopfamily = (
Oid *)
palloc(
sizeof(
Oid) * nkeycolumns);
364 info->reverse_sort = (
bool *)
palloc(
sizeof(
bool) * nkeycolumns);
365 info->nulls_first = (
bool *)
palloc(
sizeof(
bool) * nkeycolumns);
367 for (
i = 0;
i < nkeycolumns;
i++)
375 info->reverse_sort[
i] = (opt & INDOPTION_DESC) != 0;
376 info->nulls_first[
i] = (opt & INDOPTION_NULLS_FIRST) != 0;
387 opcintype == info->opcintype[
i] &&
391 info->sortopfamily[
i] = opfamily;
396 info->sortopfamily = NULL;
397 info->reverse_sort = NULL;
398 info->nulls_first = NULL;
405 info->sortopfamily = NULL;
406 info->reverse_sort = NULL;
407 info->nulls_first = NULL;
422 info->sortopfamily = NULL;
423 info->reverse_sort = NULL;
424 info->nulls_first = NULL;
435 if (info->indexprs && varno != 1)
437 if (info->
indpred && varno != 1)
458 if (indexRelation->
rd_rel->relkind != RELKIND_PARTITIONED_INDEX)
505 indexinfos =
lcons(info, indexinfos);
516 if (relation->
rd_rel->relkind == RELKIND_FOREIGN_TABLE)
525 (
errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
526 errmsg(
"access to non-system foreign table is restricted")));
535 rel->fdwroutine = NULL;
551 if (inhparent && relation->
rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
562 (*get_relation_info_hook) (
root, relationObjectId, inhparent, rel);
620 foreach(lc, cachedfkeys)
649 if (rti == rel->
relid)
657 memcpy(info->conkey, cachedfk->conkey,
sizeof(info->conkey));
658 memcpy(info->confkey, cachedfk->confkey,
sizeof(info->confkey));
659 memcpy(info->conpfeqop, cachedfk->conpfeqop,
sizeof(info->conpfeqop));
695 if (
root->glob->rel_notnullatts_hash == NULL)
709 root->glob->rel_notnullatts_hash = hashtab;
760 if (
root->glob->rel_notnullatts_hash == NULL)
817 bool foundValid =
false;
834 varno =
root->parse->resultRelation;
862 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
863 errmsg(
"whole row unique index inference specifications are not supported")));
879 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
880 errmsg(
"constraint in ON CONFLICT clause has no associated index")));
889 foreach(l, indexList)
908 idxRel =
index_open(indexoid, rte->rellockmode);
926 if (!idxForm->indisready)
940 if (indexOidFromConstraint == idxForm->indexrelid)
944 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
945 errmsg(
"ON CONFLICT DO UPDATE not supported with exclusion constraints")));
947 results =
lappend_oid(results, idxForm->indexrelid);
948 foundValid |= idxForm->indisvalid;
952 else if (indexOidFromConstraint !=
InvalidOid)
963 if (!idxForm->indisunique)
970 if (idxForm->indisexclusion)
975 for (natt = 0; natt < idxForm->indnkeyatts; natt++)
977 int attno = idxRel->
rd_index->indkey.values[natt];
985 if (!
bms_equal(indexedAttrs, inferAttrs))
990 if (idxExprs && varno != 1)
1044 if (predExprs && varno != 1)
1050 results =
lappend_oid(results, idxForm->indexrelid);
1051 foundValid |= idxForm->indisvalid;
1060 if (results ==
NIL || !foundValid)
1062 (
errcode(ERRCODE_INVALID_COLUMN_REFERENCE),
1063 errmsg(
"there is no unique or exclusion constraint matching the ON CONFLICT specification")));
1120 for (natt = 1; natt <= idxRel->
rd_att->
natts; natt++)
1125 int attno = idxRel->
rd_index->indkey.values[natt - 1];
1131 (inferopfamily != opfamily || inferopcinputtype != opcinputtype))
1147 if (((
Var *) elem->
expr)->varattno == attno)
1150 else if (attno == 0)
1152 Node *nattExpr =
list_nth(idxExprs, (natt - 1) - nplain);
1179 BlockNumber *pages,
double *tuples,
double *allvisfrac)
1187 if (RELKIND_HAS_TABLE_AM(rel->
rd_rel->relkind))
1192 else if (rel->
rd_rel->relkind == RELKIND_INDEX)
1214 reltuples = (
double) rel->
rd_rel->reltuples;
1230 if (reltuples >= 0 && relpages > 0)
1231 density = reltuples / (double) relpages;
1259 *tuples = rint(density * (
double) curpages);
1267 if (relallvisible == 0 || curpages <= 0)
1269 else if ((
double) relallvisible >= curpages)
1272 *allvisfrac = (double) relallvisible / curpages;
1282 *pages = rel->
rd_rel->relpages;
1283 *tuples = rel->
rd_rel->reltuples;
1305 int64 tuple_width = 0;
1313 if (att->attisdropped)
1317 if (attr_widths != NULL && attr_widths[
i] > 0)
1319 tuple_width += attr_widths[
i];
1325 if (item_width <= 0)
1330 if (attr_widths != NULL)
1331 attr_widths[
i] = item_width;
1332 tuple_width += item_width;
1388 bool include_noinherit,
1389 bool include_notnull,
1390 bool include_partition)
1408 for (
i = 0;
i < num_check;
i++)
1468 for (
i = 1;
i <= natts;
i++)
1480 wholeatt->atttypmod,
1481 wholeatt->attcollation,
1490 ntest->argisrow =
false;
1492 result =
lappend(result, ntest);
1501 if (include_partition && relation->
rd_rel->relispartition)
1529 Oid statOid,
bool inh,
1548 info->
inherit = dataForm->stxdinherit;
1550 info->
kind = STATS_EXT_NDISTINCT;
1552 info->
exprs = exprs;
1554 *stainfos =
lappend(*stainfos, info);
1562 info->
inherit = dataForm->stxdinherit;
1564 info->
kind = STATS_EXT_DEPENDENCIES;
1566 info->
exprs = exprs;
1568 *stainfos =
lappend(*stainfos, info);
1576 info->
inherit = dataForm->stxdinherit;
1578 info->
kind = STATS_EXT_MCV;
1580 info->
exprs = exprs;
1582 *stainfos =
lappend(*stainfos, info);
1590 info->
inherit = dataForm->stxdinherit;
1592 info->
kind = STATS_EXT_EXPRESSIONS;
1594 info->
exprs = exprs;
1596 *stainfos =
lappend(*stainfos, info);
1621 foreach(l, statoidlist)
1632 elog(
ERROR,
"cache lookup failed for statistics object %u", statOid);
1640 for (
i = 0;
i < staForm->stxkeys.dim1;
i++)
1658 Anum_pg_statistic_ext_stxexprs, &isnull);
1725 bool include_noinherit;
1726 bool include_notnull;
1727 bool include_partition =
false;
1728 List *safe_restrictions;
1729 List *constraint_pred;
1730 List *safe_constraints;
1758 if (clause &&
IsA(clause,
Const) &&
1759 (((
Const *) clause)->constisnull ||
1795 include_partition =
true;
1807 safe_restrictions =
NIL;
1813 safe_restrictions =
lappend(safe_restrictions, rinfo->
clause);
1835 include_noinherit = !rte->
inh;
1844 include_notnull = (!rte->
inh || rte->relkind == RELKIND_PARTITIONED_TABLE);
1861 safe_constraints =
NIL;
1862 foreach(lc, constraint_pred)
1867 safe_constraints =
lappend(safe_constraints, pred);
1932 for (attrno = 1; attrno <= numattrs; attrno++)
1937 if (att_tup->attisdropped || att_tup->atthasmissing)
1948 att_tup->attcollation,
1989 true , NULL, &colvars);
2014 elog(
ERROR,
"unsupported RTE kind %d in build_physical_tlist",
2042 for (
i = 0;
i <
index->ncolumns;
i++)
2044 int indexkey =
index->indexkeys[
i];
2061 att_tup->attcollation,
2067 if (indexpr_item == NULL)
2068 elog(
ERROR,
"wrong number of index expressions");
2070 indexpr_item =
lnext(
index->indexprs, indexpr_item);
2079 if (indexpr_item != NULL)
2080 elog(
ERROR,
"wrong number of index expressions");
2118 if (result < 0.0 || result > 1.0)
2119 elog(
ERROR,
"invalid restriction selectivity: %f", result);
2159 if (result < 0.0 || result > 1.0)
2160 elog(
ERROR,
"invalid join selectivity: %f", result);
2190 req.
type = T_SupportRequestSelectivity;
2205 if (sresult != &req)
2236 elog(
ERROR,
"cache lookup failed for function %u", funcid);
2244 req.
type = T_SupportRequestCost;
2257 if (sresult == &req)
2297 elog(
ERROR,
"cache lookup failed for function %u", funcid);
2300 Assert(procform->proretset);
2307 req.
type = T_SupportRequestRows;
2318 if (sresult == &req)
2327 result = procform->prorows;
2363 if (
index->unique &&
2364 index->nkeycolumns == 1 &&
2365 index->indexkeys[0] == attno &&
2384 bool result =
false;
2415 elog(
ERROR,
"unrecognized CmdType: %d", (
int) event);
2434 bool result =
false;
2439 if (rte->relkind == RELKIND_FOREIGN_TABLE)
2469 elog(
ERROR,
"unrecognized CmdType: %d", (
int) event);
2488 bool result =
false;
2523 constr = tupdesc->
constr;
2549 return dependentCols;
2566 if (
root->glob->partition_directory == NULL)
2568 root->glob->partition_directory =
2575 Assert(partdesc != NULL && rel->part_scheme != NULL);
2602 foreach(lc,
root->part_schemes)
2604 part_scheme =
lfirst(lc);
2613 sizeof(
Oid) * partnatts) != 0 ||
2615 sizeof(
Oid) * partnatts) != 0 ||
2617 sizeof(
Oid) * partnatts) != 0)
2625 sizeof(
int16) * partnatts) == 0);
2627 sizeof(
bool) * partnatts) == 0);
2636#ifdef USE_ASSERT_CHECKING
2658 sizeof(
Oid) * partnatts);
2662 sizeof(
Oid) * partnatts);
2666 sizeof(
Oid) * partnatts);
2670 sizeof(
int16) * partnatts);
2674 sizeof(
bool) * partnatts);
2678 for (
i = 0;
i < partnatts;
i++)
2714 for (cnt = 0; cnt < partnatts; cnt++)
2732 elog(
ERROR,
"wrong number of partition key expressions");
2744 rel->partexprs = partexprs;
2752 rel->nullable_partexprs = (
List **)
palloc0(
sizeof(
List *) * partnatts);
2781 if (rel->
relid != 1)
#define InvalidAttrNumber
bool bms_equal(const Bitmapset *a, const Bitmapset *b)
void bms_free(Bitmapset *a)
Bitmapset * bms_add_member(Bitmapset *a, int x)
bool bms_overlap(const Bitmapset *a, const Bitmapset *b)
Bitmapset * bms_copy(const Bitmapset *a)
#define RelationGetNumberOfBlocks(reln)
#define SizeOfPageHeaderData
#define TextDatumGetCString(d)
#define OidIsValid(objectId)
bool IsSystemRelation(Relation relation)
bool contain_mutable_functions(Node *clause)
Node * eval_const_expressions(PlannerInfo *root, Node *node)
@ CONSTRAINT_EXCLUSION_OFF
@ CONSTRAINT_EXCLUSION_PARTITION
@ CONSTRAINT_EXCLUSION_ON
int32 clamp_width_est(int64 tuple_width)
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
HTAB * hash_create(const char *tabname, int64 nelem, const HASHCTL *info, int flags)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
bool equal(const void *a, const void *b)
bool statext_is_kind_built(HeapTuple htup, char type)
Datum OidFunctionCall5Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
Datum OidFunctionCall4Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
void fmgr_info_copy(FmgrInfo *dstinfo, FmgrInfo *srcinfo, MemoryContext destcxt)
#define OidFunctionCall1(functionId, arg1)
FdwRoutine * GetFdwRoutineForRelation(Relation relation, bool makecopy)
Oid GetForeignServerIdByRelId(Oid relid)
Assert(PointerIsAligned(start, uint64))
const FormData_pg_attribute * SystemAttributeDefinition(AttrNumber attno)
#define HeapTupleIsValid(tuple)
#define SizeofHeapTupleHeader
static TransactionId HeapTupleHeaderGetXmin(const HeapTupleHeaderData *tup)
static void * GETSTRUCT(const HeapTupleData *tuple)
void index_close(Relation relation, LOCKMODE lockmode)
bool index_can_return(Relation indexRelation, int attno)
Relation index_open(Oid relationId, LOCKMODE lockmode)
if(TABLE==NULL||TABLE_index==NULL)
struct ItemIdData ItemIdData
List * list_difference(const List *list1, const List *list2)
List * lappend(List *list, void *datum)
List * list_concat(List *list1, const List *list2)
List * lappend_oid(List *list, Oid datum)
List * lcons(void *datum, List *list)
void list_free(List *list)
bool list_member(const List *list, const void *datum)
RegProcedure get_oprrest(Oid opno)
Oid get_constraint_index(Oid conoid)
bool get_ordering_op_properties(Oid opno, Oid *opfamily, Oid *opcintype, CompareType *cmptype)
Oid get_opclass_input_type(Oid opclass)
Oid get_opclass_family(Oid opclass)
Oid get_opfamily_member_for_cmptype(Oid opfamily, Oid lefttype, Oid righttype, CompareType cmptype)
RegProcedure get_func_support(Oid funcid)
int32 get_attavgwidth(Oid relid, AttrNumber attnum)
RegProcedure get_oprjoin(Oid opno)
int32 get_typavgwidth(Oid typid, int32 typmod)
Var * makeVarFromTargetEntry(int varno, TargetEntry *tle)
Var * makeVar(int varno, AttrNumber varattno, Oid vartype, int32 vartypmod, Oid varcollid, Index varlevelsup)
TargetEntry * makeTargetEntry(Expr *expr, AttrNumber resno, char *resname, bool resjunk)
List * make_ands_implicit(Expr *clause)
void pfree(void *pointer)
void * palloc0(Size size)
MemoryContext CurrentMemoryContext
void fix_opfuncids(Node *node)
#define IsA(nodeptr, _type_)
void expandRTE(RangeTblEntry *rte, int rtindex, int sublevels_up, VarReturningType returning_type, int location, bool include_dropped, List **colnames, List **colvars)
#define rt_fetch(rangetable_index, rangetable)
List * RelationGetPartitionQual(Relation rel)
PartitionKey RelationGetPartitionKey(Relation rel)
PartitionDirectory CreatePartitionDirectory(MemoryContext mcxt, bool omit_detached)
PartitionDesc PartitionDirectoryLookup(PartitionDirectory pdir, Relation rel)
#define IS_SIMPLE_REL(rel)
#define planner_rt_fetch(rti, root)
struct PartitionSchemeData * PartitionScheme
@ RELOPT_OTHER_MEMBER_REL
#define AMFLAG_HAS_TID_RANGE
FormData_pg_attribute * Form_pg_attribute
int errdetail_relkind_not_supported(char relkind)
FormData_pg_index * Form_pg_index
static int list_length(const List *l)
static void * list_nth(const List *list, int n)
static ListCell * list_head(const List *l)
static ListCell * lnext(const List *l, const ListCell *c)
FormData_pg_proc * Form_pg_proc
FormData_pg_statistic_ext * Form_pg_statistic_ext
FormData_pg_statistic_ext_data * Form_pg_statistic_ext_data
void estimate_rel_size(Relation rel, int32 *attr_widths, BlockNumber *pages, double *tuples, double *allvisfrac)
int32 get_rel_data_width(Relation rel, int32 *attr_widths)
bool has_stored_generated_columns(PlannerInfo *root, Index rti)
static void get_relation_foreign_keys(PlannerInfo *root, RelOptInfo *rel, Relation relation, bool inhparent)
void get_relation_notnullatts(PlannerInfo *root, Relation relation)
bool relation_excluded_by_constraints(PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte)
double get_function_rows(PlannerInfo *root, Oid funcid, Node *node)
bool has_row_triggers(PlannerInfo *root, Index rti, CmdType event)
static List * get_relation_constraints(PlannerInfo *root, Oid relationObjectId, RelOptInfo *rel, bool include_noinherit, bool include_notnull, bool include_partition)
void add_function_cost(PlannerInfo *root, Oid funcid, Node *node, QualCost *cost)
get_relation_info_hook_type get_relation_info_hook
static void get_relation_statistics_worker(List **stainfos, RelOptInfo *rel, Oid statOid, bool inh, Bitmapset *keys, List *exprs)
List * build_physical_tlist(PlannerInfo *root, RelOptInfo *rel)
static List * get_relation_statistics(PlannerInfo *root, RelOptInfo *rel, Relation relation)
Selectivity restriction_selectivity(PlannerInfo *root, Oid operatorid, List *args, Oid inputcollid, int varRelid)
int32 get_relation_data_width(Oid relid, int32 *attr_widths)
static void set_baserel_partition_constraint(Relation relation, RelOptInfo *rel)
struct NotnullHashEntry NotnullHashEntry
static List * build_index_tlist(PlannerInfo *root, IndexOptInfo *index, Relation heapRelation)
static bool infer_collation_opclass_match(InferenceElem *elem, Relation idxRel, List *idxExprs)
static void set_relation_partition_info(PlannerInfo *root, RelOptInfo *rel, Relation relation)
bool has_unique_index(RelOptInfo *rel, AttrNumber attno)
Bitmapset * find_relation_notnullatts(PlannerInfo *root, Oid relid)
bool has_transition_tables(PlannerInfo *root, Index rti, CmdType event)
static PartitionScheme find_partition_scheme(PlannerInfo *root, Relation relation)
static void set_baserel_partition_key_exprs(Relation relation, RelOptInfo *rel)
Selectivity join_selectivity(PlannerInfo *root, Oid operatorid, List *args, Oid inputcollid, JoinType jointype, SpecialJoinInfo *sjinfo)
Selectivity function_selectivity(PlannerInfo *root, Oid funcid, List *args, Oid inputcollid, bool is_join, int varRelid, JoinType jointype, SpecialJoinInfo *sjinfo)
Bitmapset * get_dependent_generated_columns(PlannerInfo *root, Index rti, Bitmapset *target_cols)
void get_relation_info(PlannerInfo *root, Oid relationObjectId, bool inhparent, RelOptInfo *rel)
List * infer_arbiter_indexes(PlannerInfo *root)
void(* get_relation_info_hook_type)(PlannerInfo *root, Oid relationObjectId, bool inhparent, RelOptInfo *rel)
Expr * expression_planner(Expr *expr)
int restrict_nonsystem_relation_kind
static bool DatumGetBool(Datum X)
static Datum PointerGetDatum(const void *X)
static Datum Int16GetDatum(int16 X)
static Datum BoolGetDatum(bool X)
static float8 DatumGetFloat8(Datum X)
static Datum ObjectIdGetDatum(Oid X)
static Pointer DatumGetPointer(Datum X)
static Datum Int32GetDatum(int32 X)
bool predicate_refuted_by(List *predicate_list, List *clause_list, bool weak)
bool predicate_implied_by(List *predicate_list, List *clause_list, bool weak)
Expr * canonicalize_qual(Expr *qual, bool is_check)
void * stringToNode(const char *str)
#define RelationGetForm(relation)
#define RelationGetRelid(relation)
#define RelationGetParallelWorkers(relation, defaultpw)
#define RelationGetDescr(relation)
#define RelationGetNumberOfAttributes(relation)
#define RelationGetRelationName(relation)
#define RelationIsPermanent(relation)
List * RelationGetIndexList(Relation relation)
List * RelationGetIndexPredicate(Relation relation)
List * RelationGetStatExtList(Relation relation)
List * RelationGetFKeyList(Relation relation)
List * RelationGetIndexExpressions(Relation relation)
bytea ** RelationGetIndexAttOptions(Relation relation, bool copy)
Node * expand_generated_columns_in_expr(Node *node, Relation rel, int rt_index)
void ChangeVarNodes(Node *node, int rt_index, int new_index, int sublevels_up)
TransactionId TransactionXmin
struct EquivalenceClass * eclass[INDEX_MAX_KEYS]
List * rinfos[INDEX_MAX_KEYS]
struct EquivalenceMember * fk_eclass_member[INDEX_MAX_KEYS]
amrestrpos_function amrestrpos
amcostestimate_function amcostestimate
amgettuple_function amgettuple
amgetbitmap_function amgetbitmap
ammarkpos_function ammarkpos
amgettreeheight_function amgettreeheight
void(* amcostestimate)(struct PlannerInfo *, struct IndexPath *, double, Cost *, Cost *, Selectivity *, double *, double *) pg_node_attr(read_write_ignore)
Bitmapset * notnullattnums
NullTestType nulltesttype
PartitionBoundInfo boundinfo
PartitionStrategy strategy
struct FmgrInfo * partsupfunc
Bitmapset * notnullattnums
const struct TableAmRoutine * rd_tableam
struct IndexAmRoutine * rd_indam
struct HeapTupleData * rd_indextuple
bool(* scan_bitmap_next_tuple)(TableScanDesc scan, TupleTableSlot *slot, bool *recheck, uint64 *lossy_pages, uint64 *exact_pages)
bool(* scan_getnextslot_tidrange)(TableScanDesc scan, ScanDirection direction, TupleTableSlot *slot)
void(* scan_set_tidrange)(TableScanDesc scan, ItemPointer mintid, ItemPointer maxtid)
bool trig_delete_before_row
bool trig_update_after_row
bool trig_update_new_table
bool trig_insert_after_row
bool trig_update_before_row
bool trig_insert_new_table
bool trig_delete_old_table
bool trig_delete_after_row
bool trig_insert_before_row
bool trig_update_old_table
bool has_generated_stored
#define FirstLowInvalidHeapAttributeNumber
void ReleaseSysCache(HeapTuple tuple)
HeapTuple SearchSysCache1(int cacheId, Datum key1)
Datum SysCacheGetAttr(int cacheId, HeapTuple tup, AttrNumber attributeNumber, bool *isNull)
HeapTuple SearchSysCache2(int cacheId, Datum key1, Datum key2)
void table_close(Relation relation, LOCKMODE lockmode)
Relation table_open(Oid relationId, LOCKMODE lockmode)
static void table_relation_estimate_size(Relation rel, int32 *attr_widths, BlockNumber *pages, double *tuples, double *allvisfrac)
#define RESTRICT_RELKIND_FOREIGN_TABLE
#define FirstNormalObjectId
static bool TransactionIdPrecedes(TransactionId id1, TransactionId id2)
#define ATTNULLABLE_UNKNOWN
#define ATTNULLABLE_VALID
static FormData_pg_attribute * TupleDescAttr(TupleDesc tupdesc, int i)
static CompactAttribute * TupleDescCompactAttr(TupleDesc tupdesc, int i)
void pull_varattnos(Node *node, Index varno, Bitmapset **varattnos)
bool RecoveryInProgress(void)