110 #define REL_ALIAS_PREFIX "r"
112 #define ADD_REL_QUALIFIER(buf, varno) \
113 appendStringInfo((buf), "%s%d.", REL_ALIAS_PREFIX, (varno))
114 #define SUBQUERY_REL_ALIAS_PREFIX "s"
115 #define SUBQUERY_COL_ALIAS_PREFIX "c"
137 List **retrieved_attrs);
140 List **retrieved_attrs,
146 List *withCheckOptionList,
148 List **retrieved_attrs);
183 List **additional_conds,
191 List **additional_conds,
List **params_list);
206 int *relno,
int *colno);
208 int *relno,
int *colno);
229 foreach(lc, input_conds)
234 *remote_conds =
lappend(*remote_conds, ri);
236 *local_conds =
lappend(*local_conds, ri);
317 bool check_type =
true;
363 collation = var->varcollid;
369 collation = var->varcollid;
371 collation == DEFAULT_COLLATION_OID)
401 switch (
c->consttype)
404 case REGPROCEDUREOID:
406 ProcedureRelationId, fpinfo))
412 OperatorRelationId, fpinfo))
417 RelationRelationId, fpinfo))
422 TypeRelationId, fpinfo))
425 case REGCOLLATIONOID:
427 CollationRelationId, fpinfo))
441 TSConfigRelationId, fpinfo))
444 case REGDICTIONARYOID:
447 TSDictionaryRelationId, fpinfo))
450 case REGNAMESPACEOID:
452 NamespaceRelationId, fpinfo))
457 AuthIdRelationId, fpinfo))
469 collation =
c->constcollid;
471 collation == DEFAULT_COLLATION_OID)
500 collation = p->paramcollid;
502 collation == DEFAULT_COLLATION_OID)
508 case T_SubscriptingRef:
522 glob_cxt, &inner_cxt, case_arg_cxt))
527 glob_cxt, &inner_cxt, case_arg_cxt))
532 glob_cxt, &inner_cxt, case_arg_cxt))
540 collation = sr->refcollid;
544 collation == inner_cxt.collation)
546 else if (collation == DEFAULT_COLLATION_OID)
568 glob_cxt, &inner_cxt, case_arg_cxt))
578 fe->inputcollid != inner_cxt.collation)
587 collation =
fe->funccollid;
591 collation == inner_cxt.collation)
593 else if (collation == DEFAULT_COLLATION_OID)
616 glob_cxt, &inner_cxt, case_arg_cxt))
626 oe->inputcollid != inner_cxt.collation)
630 collation = oe->opcollid;
634 collation == inner_cxt.collation)
636 else if (collation == DEFAULT_COLLATION_OID)
642 case T_ScalarArrayOpExpr:
656 glob_cxt, &inner_cxt, case_arg_cxt))
666 oe->inputcollid != inner_cxt.collation)
682 glob_cxt, &inner_cxt, case_arg_cxt))
689 collation = r->resultcollid;
693 collation == inner_cxt.collation)
695 else if (collation == DEFAULT_COLLATION_OID)
709 glob_cxt, &inner_cxt, case_arg_cxt))
725 glob_cxt, &inner_cxt, case_arg_cxt))
750 glob_cxt, &arg_cxt, case_arg_cxt))
755 foreach(lc, ce->
args)
778 opArgs = ((
OpExpr *) whenExpr)->args;
793 glob_cxt, &tmp_cxt, &arg_cxt))
798 glob_cxt, &inner_cxt, case_arg_cxt))
804 glob_cxt, &inner_cxt, case_arg_cxt))
815 collation = ce->casecollid;
821 else if (collation == DEFAULT_COLLATION_OID)
840 collation =
c->collation;
846 else if (collation == DEFAULT_COLLATION_OID)
860 glob_cxt, &inner_cxt, case_arg_cxt))
867 collation =
a->array_collid;
871 collation == inner_cxt.collation)
873 else if (collation == DEFAULT_COLLATION_OID)
890 glob_cxt, &inner_cxt, case_arg_cxt))
927 foreach(lc, agg->
args)
940 glob_cxt, &inner_cxt, case_arg_cxt))
973 glob_cxt, &inner_cxt, case_arg_cxt))
992 collation = agg->aggcollid;
998 else if (collation == DEFAULT_COLLATION_OID)
1043 if (outer_cxt->
collation == DEFAULT_COLLATION_OID)
1048 else if (collation != DEFAULT_COLLATION_OID)
1101 relids = baserel->
relids;
1235 bool has_final_sort,
bool has_limit,
bool is_subquery,
1236 List **retrieved_attrs,
List **params_list)
1253 context.params_list = params_list;
1271 quals = remote_conds;
1387 (
Index) 0, NULL, &additional_conds,
1390 if (additional_conds !=
NIL)
1412 List **retrieved_attrs)
1419 *retrieved_attrs =
NIL;
1426 for (
i = 1;
i <= tupdesc->
natts;
i++)
1431 if (attr->attisdropped)
1434 if (have_wholerow ||
1440 else if (is_returning)
1459 else if (is_returning)
1472 if (first && !is_returning)
1575 bool is_first =
true;
1611 bool need_and =
false;
1614 if (exprs !=
NIL || additional_conds !=
NIL)
1630 foreach(lc, additional_conds)
1662 elog(
ERROR,
"unsupported join type %d", jointype);
1683 List **retrieved_attrs,
1690 *retrieved_attrs =
NIL;
1698 else if (is_returning)
1703 *retrieved_attrs =
lappend_int(*retrieved_attrs,
i + 1);
1707 if (
i == 0 && !is_returning)
1762 bool use_alias,
Index ignore_rel,
List **ignore_conds,
1763 List **additional_conds,
List **params_list)
1773 bool outerrel_is_target =
false;
1774 bool innerrel_is_target =
false;
1775 List *additional_conds_i =
NIL;
1776 List *additional_conds_o =
NIL;
1801 if (outerrel->
relid == ignore_rel)
1802 outerrel_is_target =
true;
1803 else if (innerrel->
relid == ignore_rel)
1804 innerrel_is_target =
true;
1808 if (!outerrel_is_target)
1813 ignore_rel, ignore_conds, &additional_conds_o,
1825 if (innerrel_is_target)
1831 if (additional_conds_o !=
NIL)
1834 *additional_conds = additional_conds_o;
1841 if (!innerrel_is_target)
1846 ignore_rel, ignore_conds, &additional_conds_i,
1868 context.foreignrel = foreignrel;
1871 context.params_list = params_list;
1883 if (additional_conds_i !=
NIL)
1886 additional_conds_i =
NIL;
1892 *additional_conds =
lappend(*additional_conds,
str.data);
1899 if (outerrel_is_target)
1905 if (additional_conds_i !=
NIL)
1908 *additional_conds = additional_conds_i;
1915 Assert(!outerrel_is_target && !innerrel_is_target);
1943 context.foreignrel = foreignrel;
1946 context.params_list = params_list;
1964 if (additional_conds_o !=
NIL)
1966 *additional_conds =
list_concat(*additional_conds,
1967 additional_conds_o);
1971 if (additional_conds_i !=
NIL)
1973 *additional_conds =
list_concat(*additional_conds,
1974 additional_conds_i);
2009 bool make_subquery,
Index ignore_rel,
List **ignore_conds,
2010 List **additional_conds,
List **params_list)
2022 List *retrieved_attrs;
2030 Assert(ignore_rel == 0 ||
2038 &retrieved_attrs, params_list);
2056 for (
i = 1;
i <= ncols;
i++)
2068 ignore_conds, additional_conds,
2085 List *targetAttrs,
bool doNothing,
2086 List *withCheckOptionList,
List *returningList,
2087 List **retrieved_attrs,
int *values_end_len)
2102 foreach(lc, targetAttrs)
2117 foreach(lc, targetAttrs)
2126 if (attr->attgenerated)
2139 *values_end_len =
buf->len;
2146 withCheckOptionList, returningList, retrieved_attrs);
2157 char *orig_query,
List *target_attrs,
2158 int values_end_len,
int num_params,
2168 Assert((values_end_len > 0) && (values_end_len <= strlen(orig_query)));
2177 pindex = num_params + 1;
2178 for (
i = 0;
i < num_rows;
i++)
2183 foreach(lc, target_attrs)
2192 if (attr->attgenerated)
2219 List *withCheckOptionList,
List *returningList,
2220 List **retrieved_attrs)
2233 foreach(lc, targetAttrs)
2243 if (attr->attgenerated)
2255 withCheckOptionList, returningList, retrieved_attrs);
2283 List *returningList,
2284 List **retrieved_attrs)
2296 context.foreignrel = foreignrel;
2299 context.params_list = params_list;
2311 forboth(lc, targetlist, lc2, targetAttrs)
2337 &ignore_conds, &additional_conds, params_list);
2338 remote_conds =
list_concat(remote_conds, ignore_conds);
2343 if (additional_conds !=
NIL)
2351 NIL, returningList, retrieved_attrs);
2364 List *returningList,
2365 List **retrieved_attrs)
2373 NIL, returningList, retrieved_attrs);
2396 List *returningList,
2397 List **retrieved_attrs)
2404 context.foreignrel = foreignrel;
2407 context.params_list = params_list;
2420 &ignore_conds, &additional_conds, params_list);
2421 remote_conds =
list_concat(remote_conds, ignore_conds);
2426 if (additional_conds !=
NIL)
2434 rtindex, rel,
false,
2435 NIL, returningList, retrieved_attrs);
2444 bool trig_after_row,
2445 List *withCheckOptionList,
2446 List *returningList,
2447 List **retrieved_attrs)
2458 if (withCheckOptionList !=
NIL)
2473 if (returningList !=
NIL)
2483 if (attrs_used != NULL)
2487 *retrieved_attrs =
NIL;
2563 List **retrieved_attrs)
2573 *retrieved_attrs =
NIL;
2576 for (
i = 0;
i < tupdesc->
natts;
i++)
2594 if (strcmp(def->
defname,
"column_name") == 0)
2603 *retrieved_attrs =
lappend_int(*retrieved_attrs,
i + 1);
2617 switch (sample_method)
2637 elog(
ERROR,
"unexpected sampling method");
2666 restart_seqs ?
"RESTART" :
"CONTINUE");
2691 else if (varattno < 0)
2702 fetchval = rte->
relid;
2713 else if (varattno == 0)
2720 List *retrieved_attrs;
2766 char *colname = NULL;
2782 if (strcmp(def->
defname,
"column_name") == 0)
2793 if (colname == NULL)
2812 const char *nspname = NULL;
2826 if (strcmp(def->
defname,
"schema_name") == 0)
2828 else if (strcmp(def->
defname,
"table_name") == 0)
2836 if (nspname == NULL)
2859 if (strchr(
val,
'\\') != NULL)
2862 for (valptr =
val; *valptr; valptr++)
2900 case T_SubscriptingRef:
2909 case T_DistinctExpr:
2912 case T_ScalarArrayOpExpr:
2934 elog(
ERROR,
"unsupported expression type for deparse: %d",
2984 foreach(lc, *
context->params_list)
3026 bool isfloat =
false;
3027 bool isstring =
false;
3030 if (node->constisnull)
3036 node->consttypmod));
3041 &typoutput, &typIsVarlena);
3058 if (strspn(extval,
"0123456789+-eE.") == strlen(extval))
3060 if (extval[0] ==
'+' || extval[0] ==
'-')
3064 if (strcspn(extval,
"eE.") != strlen(extval))
3076 if (strcmp(extval,
"t") == 0)
3107 needlabel = !isfloat || (node->consttypmod >= 0);
3113 needlabel = !isstring;
3119 if (needlabel || showtype > 0)
3122 node->consttypmod));
3142 foreach(lc, *
context->params_list)
3236 Oid rettype = node->funcresulttype;
3237 int32 coercedTypmod;
3249 use_variadic = node->funcvariadic;
3282 bool canSuppressRightConstCast =
false;
3288 elog(
ERROR,
"cache lookup failed for operator %u", node->
opno);
3290 oprkind = form->oprkind;
3307 bool canSuppressLeftConstCast =
false;
3335 if (leftType == rightType)
3343 if (canSuppressLeftConstCast)
3357 if (canSuppressRightConstCast)
3411 opname =
NameStr(opform->oprname);
3414 if (opform->oprnamespace != PG_CATALOG_NAMESPACE)
3416 const char *opnspname;
3463 elog(
ERROR,
"cache lookup failed for operator %u", node->
opno);
3503 node->resulttypmod));
3513 const char *op = NULL;
3534 foreach(lc, node->
args)
3589 if (node->
arg != NULL)
3596 foreach(lc, node->
args)
3602 if (node->
arg == NULL)
3666 use_variadic = node->aggvariadic;
3675 if (AGGKIND_IS_ORDERED_SET(node->aggkind))
3681 Assert(!node->aggvariadic);
3755 foreach(lc, orderList)
3788 if (sortop == typentry->
lt_opr)
3790 else if (sortop == typentry->
gt_opr)
3802 elog(
ERROR,
"cache lookup failed for operator %u", sortop);
3916 bool gotone =
false;
3921 foreach(lcell, pathkeys)
3949 elog(
ERROR,
"could not find pathkey item to sort");
3983 elog(
ERROR,
"missing operator %d(%u,%u) in opfamily %u",
4013 if (
root->parse->limitCount)
4018 if (
root->parse->limitOffset)
4041 elog(
ERROR,
"cache lookup failed for function %u", funcid);
4045 if (procform->pronamespace != PG_CATALOG_NAMESPACE)
4047 const char *schemaname;
4092 else if (!expr ||
IsA(expr,
Var))
4102 return (
Node *) expr;
4175 int *relno,
int *colno)
4207 elog(
ERROR,
"unexpected expression in subquery output");
int bms_next_member(const Bitmapset *a, int prevbit)
void bms_free(Bitmapset *a)
bool bms_is_member(int x, const Bitmapset *a)
Bitmapset * bms_make_singleton(int x)
Bitmapset * bms_add_member(Bitmapset *a, int x)
BMS_Membership bms_membership(const Bitmapset *a)
#define FORMAT_TYPE_TYPEMOD_GIVEN
#define FORMAT_TYPE_FORCE_QUALIFY
#define Assert(condition)
#define ESCAPE_STRING_SYNTAX
#define SQL_STR_DOUBLE(ch, escape_backslash)
#define OidIsValid(objectId)
bool contain_mutable_functions(Node *clause)
char * defGetString(DefElem *def)
static void deparseRangeTblRef(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel, bool make_subquery, Index ignore_rel, List **ignore_conds, List **additional_conds, List **params_list)
static void deparseCaseExpr(CaseExpr *node, deparse_expr_cxt *context)
void deparseAnalyzeSizeSql(StringInfo buf, Relation rel)
static void deparseBoolExpr(BoolExpr *node, deparse_expr_cxt *context)
static void appendGroupByClause(List *tlist, deparse_expr_cxt *context)
static void deparseTargetList(StringInfo buf, RangeTblEntry *rte, Index rtindex, Relation rel, bool is_returning, Bitmapset *attrs_used, bool qualify_col, List **retrieved_attrs)
#define SUBQUERY_REL_ALIAS_PREFIX
static void deparseFromExpr(List *quals, deparse_expr_cxt *context)
static Node * deparseSortGroupClause(Index ref, List *tlist, bool force_colno, deparse_expr_cxt *context)
static void deparseLockingClause(deparse_expr_cxt *context)
const char * get_jointype_name(JoinType jointype)
void deparseAnalyzeInfoSql(StringInfo buf, Relation rel)
static void deparseAggref(Aggref *node, deparse_expr_cxt *context)
static void appendOrderBySuffix(Oid sortop, Oid sortcoltype, bool nulls_first, deparse_expr_cxt *context)
void deparseDirectDeleteSql(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, RelOptInfo *foreignrel, List *remote_conds, List **params_list, List *returningList, List **retrieved_attrs)
void deparseDirectUpdateSql(StringInfo buf, PlannerInfo *root, Index rtindex, Relation rel, RelOptInfo *foreignrel, List *targetlist, List *targetAttrs, List *remote_conds, List **params_list, List *returningList, List **retrieved_attrs)
struct deparse_expr_cxt deparse_expr_cxt
static void get_relation_column_alias_ids(Var *node, RelOptInfo *foreignrel, int *relno, int *colno)
static void printRemoteParam(int paramindex, Oid paramtype, int32 paramtypmod, deparse_expr_cxt *context)
static bool is_subquery_var(Var *node, RelOptInfo *foreignrel, int *relno, int *colno)
bool is_foreign_param(PlannerInfo *root, RelOptInfo *baserel, Expr *expr)
static void printRemotePlaceholder(Oid paramtype, int32 paramtypmod, deparse_expr_cxt *context)
static void appendOrderByClause(List *pathkeys, bool has_final_sort, deparse_expr_cxt *context)
static bool foreign_expr_walker(Node *node, foreign_glob_cxt *glob_cxt, foreign_loc_cxt *outer_cxt, foreign_loc_cxt *case_arg_cxt)
static void deparseColumnRef(StringInfo buf, int varno, int varattno, RangeTblEntry *rte, bool qualify_col)
static void deparseRelabelType(RelabelType *node, deparse_expr_cxt *context)
static void deparseNullTest(NullTest *node, deparse_expr_cxt *context)
static void deparseOperatorName(StringInfo buf, Form_pg_operator opform)
static void deparseOpExpr(OpExpr *node, deparse_expr_cxt *context)
static void deparseConst(Const *node, deparse_expr_cxt *context, int showtype)
static bool isPlainForeignVar(Expr *node, deparse_expr_cxt *context)
static void deparseDistinctExpr(DistinctExpr *node, deparse_expr_cxt *context)
void deparseSelectStmtForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *rel, List *tlist, List *remote_conds, List *pathkeys, bool has_final_sort, bool has_limit, bool is_subquery, List **retrieved_attrs, List **params_list)
static void deparseFuncExpr(FuncExpr *node, deparse_expr_cxt *context)
void deparseStringLiteral(StringInfo buf, const char *val)
void rebuildInsertSql(StringInfo buf, Relation rel, char *orig_query, List *target_attrs, int values_end_len, int num_params, int num_rows)
struct foreign_glob_cxt foreign_glob_cxt
static void deparseArrayExpr(ArrayExpr *node, deparse_expr_cxt *context)
void deparseInsertSql(StringInfo buf, RangeTblEntry *rte, Index rtindex, Relation rel, List *targetAttrs, bool doNothing, List *withCheckOptionList, List *returningList, List **retrieved_attrs, int *values_end_len)
static void deparseReturningList(StringInfo buf, RangeTblEntry *rte, Index rtindex, Relation rel, bool trig_after_row, List *withCheckOptionList, List *returningList, List **retrieved_attrs)
void deparseUpdateSql(StringInfo buf, RangeTblEntry *rte, Index rtindex, Relation rel, List *targetAttrs, List *withCheckOptionList, List *returningList, List **retrieved_attrs)
static void deparseVar(Var *node, deparse_expr_cxt *context)
static void appendFunctionName(Oid funcid, deparse_expr_cxt *context)
static void appendConditions(List *exprs, deparse_expr_cxt *context)
struct foreign_loc_cxt foreign_loc_cxt
void deparseDeleteSql(StringInfo buf, RangeTblEntry *rte, Index rtindex, Relation rel, List *returningList, List **retrieved_attrs)
void deparseAnalyzeSql(StringInfo buf, Relation rel, PgFdwSamplingMethod sample_method, double sample_frac, List **retrieved_attrs)
static void deparseSubscriptingRef(SubscriptingRef *node, deparse_expr_cxt *context)
static void deparseRelation(StringInfo buf, Relation rel)
static void deparseExplicitTargetList(List *tlist, bool is_returning, List **retrieved_attrs, deparse_expr_cxt *context)
static char * deparse_type_name(Oid type_oid, int32 typemod)
#define ADD_REL_QUALIFIER(buf, varno)
static void appendLimitClause(deparse_expr_cxt *context)
static void deparseExpr(Expr *node, deparse_expr_cxt *context)
bool is_foreign_expr(PlannerInfo *root, RelOptInfo *baserel, Expr *expr)
List * build_tlist_to_deparse(RelOptInfo *foreignrel)
static void deparseFromExprForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel, bool use_alias, Index ignore_rel, List **ignore_conds, List **additional_conds, List **params_list)
#define SUBQUERY_COL_ALIAS_PREFIX
void classifyConditions(PlannerInfo *root, RelOptInfo *baserel, List *input_conds, List **remote_conds, List **local_conds)
static void deparseScalarArrayOpExpr(ScalarArrayOpExpr *node, deparse_expr_cxt *context)
static void appendWhereClause(List *exprs, List *additional_conds, deparse_expr_cxt *context)
void deparseTruncateSql(StringInfo buf, List *rels, DropBehavior behavior, bool restart_seqs)
static void deparseSubqueryTargetList(deparse_expr_cxt *context)
bool is_foreign_pathkey(PlannerInfo *root, RelOptInfo *baserel, PathKey *pathkey)
static void deparseSelectSql(List *tlist, bool is_subquery, List **retrieved_attrs, deparse_expr_cxt *context)
static void deparseParam(Param *node, deparse_expr_cxt *context)
static void appendAggOrderBy(List *orderList, List *targetList, deparse_expr_cxt *context)
bool equal(const void *a, const void *b)
char * OidOutputFunctionCall(Oid functionId, Datum val)
ForeignTable * GetForeignTable(Oid relid)
List * GetForeignColumnOptions(Oid relid, AttrNumber attnum)
#define HeapTupleIsValid(tuple)
if(TABLE==NULL||TABLE_index==NULL)
List * lappend(List *list, void *datum)
List * lappend_int(List *list, int datum)
void list_free(List *list)
List * list_concat(List *list1, const List *list2)
void list_free_deep(List *list)
bool type_is_rowtype(Oid typid)
char * get_namespace_name(Oid nspid)
void getTypeOutputInfo(Oid type, Oid *typOutput, bool *typIsVarlena)
Oid get_opfamily_member(Oid opfamily, Oid lefttype, Oid righttype, int16 strategy)
char * get_attname(Oid relid, AttrNumber attnum, bool missing_ok)
void pfree(void *pointer)
Oid exprType(const Node *expr)
bool exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod)
Node * strip_implicit_coercions(Node *node)
#define IsA(nodeptr, _type_)
#define castNode(_type_, nodeptr)
#define PVC_RECURSE_PLACEHOLDERS
#define IS_SIMPLE_REL(rel)
#define planner_rt_fetch(rti, root)
#define IS_UPPER_REL(rel)
FormData_pg_attribute * Form_pg_attribute
#define lfirst_node(type, lc)
static int list_length(const List *l)
#define forboth(cell1, list1, cell2, list2)
static ListCell * list_head(const List *l)
static ListCell * lnext(const List *l, const ListCell *c)
FormData_pg_operator * Form_pg_operator
FormData_pg_proc * Form_pg_proc
static Oid DatumGetObjectId(Datum X)
static Datum ObjectIdGetDatum(Oid X)
void reset_transmission_modes(int nestlevel)
int set_transmission_modes(void)
EquivalenceMember * find_em_for_rel(PlannerInfo *root, EquivalenceClass *ec, RelOptInfo *rel)
EquivalenceMember * find_em_for_rel_target(PlannerInfo *root, EquivalenceClass *ec, RelOptInfo *rel)
bool is_shippable(Oid objectId, Oid classId, PgFdwRelationInfo *fpinfo)
bool is_builtin(Oid objectId)
@ ANALYZE_SAMPLE_BERNOULLI
PlanRowMark * get_plan_rowmark(List *rowmarks, Index rtindex)
#define IS_SPECIAL_VARNO(varno)
#define RelationGetRelid(relation)
#define RelationGetDescr(relation)
#define RelationGetRelationName(relation)
#define RelationGetNamespace(relation)
const char * quote_identifier(const char *ident)
void appendStringInfo(StringInfo str, const char *fmt,...)
void appendBinaryStringInfo(StringInfo str, const void *data, int datalen)
void appendStringInfoString(StringInfo str, const char *s)
void appendStringInfoChar(StringInfo str, char ch)
void initStringInfo(StringInfo str)
NullTestType nulltesttype
bool make_outerrel_subquery
Relids lower_subquery_rels
bool make_innerrel_subquery
LockClauseStrength strength
struct PathTarget * reltarget
bool trig_update_after_row
bool trig_insert_after_row
bool trig_delete_after_row
#define FirstLowInvalidHeapAttributeNumber
#define TableOidAttributeNumber
#define SelfItemPointerAttributeNumber
void ReleaseSysCache(HeapTuple tuple)
HeapTuple SearchSysCache1(int cacheId, Datum key1)
void table_close(Relation relation, LOCKMODE lockmode)
Relation table_open(Oid relationId, LOCKMODE lockmode)
TargetEntry * get_sortgroupref_tle(Index sortref, List *targetList)
List * add_to_flat_tlist(List *tlist, List *exprs)
#define FirstNormalObjectId
#define TupleDescAttr(tupdesc, i)
TypeCacheEntry * lookup_type_cache(Oid type_id, int flags)
List * pull_var_clause(Node *node, int flags)
void pull_varattnos(Node *node, Index varno, Bitmapset **varattnos)