52 type = ((
const Var *) expr)->vartype;
69 case T_MergeSupportFunc:
72 case T_SubscriptingRef:
90 case T_ScalarArrayOpExpr:
108 elog(
ERROR,
"cannot get type for untransformed sublink");
117 (
errcode(ERRCODE_UNDEFINED_OBJECT),
118 errmsg(
"could not find array type for data type %s",
148 (
errcode(ERRCODE_UNDEFINED_OBJECT),
149 errmsg(
"could not find array type for data type %s",
165 case T_AlternativeSubPlan:
185 case T_ArrayCoerceExpr:
188 case T_ConvertRowtypeExpr:
206 case T_RowCompareExpr:
215 case T_SQLValueFunction:
226 case T_JsonValueExpr:
233 case T_JsonConstructorExpr:
236 case T_JsonIsPredicate:
259 case T_CoerceToDomain:
262 case T_CoerceToDomainValue:
268 case T_CurrentOfExpr:
271 case T_NextValueExpr:
274 case T_InferenceElem:
281 case T_ReturningExpr:
284 case T_PlaceHolderVar:
309 return ((
const Var *) expr)->vartypmod;
311 return ((
const Const *) expr)->consttypmod;
313 return ((
const Param *) expr)->paramtypmod;
314 case T_SubscriptingRef:
322 return coercedTypmod;
350 elog(
ERROR,
"cannot get type for untransformed sublink");
373 case T_AlternativeSubPlan:
385 case T_ArrayCoerceExpr:
396 Oid casetype = cexpr->casetype;
432 if (arrayexpr->elements ==
NIL)
437 if (arrayexpr->multidims)
438 commontype = arrayexpr->array_typeid;
440 commontype = arrayexpr->element_typeid;
441 foreach(elem, arrayexpr->elements)
460 Oid coalescetype = cexpr->coalescetype;
488 Oid minmaxtype = mexpr->minmaxtype;
509 case T_SQLValueFunction:
511 case T_JsonValueExpr:
513 case T_JsonConstructorExpr:
529 case T_CoerceToDomain:
531 case T_CoerceToDomainValue:
535 case T_ReturningExpr:
537 case T_PlaceHolderVar:
559 if (coercedTypmod != NULL)
585 if (nargs < 2 || nargs > 3)
591 second_arg->constisnull)
597 if (coercedTypmod != NULL)
608 if (acoerce->resulttypmod < 0)
614 if (coercedTypmod != NULL)
615 *coercedTypmod = acoerce->resulttypmod;
655 con->consttypmod = rtypmod;
656 con->constcollid = rcollid;
674 newrelabel->resulttypmod = rtypmod;
675 newrelabel->resultcollid = rcollid;
676 newrelabel->relabelformat = rformat;
678 return (
Node *) newrelabel;
777 if (expr->funcretset)
831 coll = ((
const Var *) expr)->varcollid;
834 coll = ((
const Const *) expr)->constcollid;
837 coll = ((
const Param *) expr)->paramcollid;
840 coll = ((
const Aggref *) expr)->aggcollid;
846 coll = ((
const WindowFunc *) expr)->wincollid;
848 case T_MergeSupportFunc:
851 case T_SubscriptingRef:
855 coll = ((
const FuncExpr *) expr)->funccollid;
861 coll = ((
const OpExpr *) expr)->opcollid;
869 case T_ScalarArrayOpExpr:
889 elog(
ERROR,
"cannot get collation for untransformed sublink");
920 case T_AlternativeSubPlan:
941 case T_ArrayCoerceExpr:
944 case T_ConvertRowtypeExpr:
952 coll = ((
const CaseExpr *) expr)->casecollid;
958 coll = ((
const ArrayExpr *) expr)->array_collid;
964 case T_RowCompareExpr:
972 coll = ((
const MinMaxExpr *) expr)->minmaxcollid;
974 case T_SQLValueFunction:
977 coll = C_COLLATION_OID;
989 coll = DEFAULT_COLLATION_OID;
993 case T_JsonValueExpr:
996 case T_JsonConstructorExpr:
1006 case T_JsonIsPredicate:
1017 case T_JsonBehavior:
1035 case T_CoerceToDomain:
1038 case T_CoerceToDomainValue:
1041 case T_SetToDefault:
1044 case T_CurrentOfExpr:
1048 case T_NextValueExpr:
1052 case T_InferenceElem:
1055 case T_ReturningExpr:
1058 case T_PlaceHolderVar:
1086 coll = ((
const Aggref *) expr)->inputcollid;
1089 coll = ((
const WindowFunc *) expr)->inputcollid;
1092 coll = ((
const FuncExpr *) expr)->inputcollid;
1095 coll = ((
const OpExpr *) expr)->inputcollid;
1097 case T_DistinctExpr:
1101 coll = ((
const NullIfExpr *) expr)->inputcollid;
1103 case T_ScalarArrayOpExpr:
1107 coll = ((
const MinMaxExpr *) expr)->inputcollid;
1129 ((
Var *) expr)->varcollid = collation;
1132 ((
Const *) expr)->constcollid = collation;
1135 ((
Param *) expr)->paramcollid = collation;
1138 ((
Aggref *) expr)->aggcollid = collation;
1140 case T_GroupingFunc:
1144 ((
WindowFunc *) expr)->wincollid = collation;
1146 case T_MergeSupportFunc:
1149 case T_SubscriptingRef:
1153 ((
FuncExpr *) expr)->funccollid = collation;
1155 case T_NamedArgExpr:
1159 ((
OpExpr *) expr)->opcollid = collation;
1161 case T_DistinctExpr:
1167 case T_ScalarArrayOpExpr:
1176#ifdef USE_ASSERT_CHECKING
1188 elog(
ERROR,
"cannot set collation for untransformed sublink");
1214 case T_ArrayCoerceExpr:
1217 case T_ConvertRowtypeExpr:
1222 ((
CaseExpr *) expr)->casecollid = collation;
1225 ((
ArrayExpr *) expr)->array_collid = collation;
1231 case T_RowCompareExpr:
1235 case T_CoalesceExpr:
1239 ((
MinMaxExpr *) expr)->minmaxcollid = collation;
1241 case T_SQLValueFunction:
1243 (collation == C_COLLATION_OID) :
1248 (collation == DEFAULT_COLLATION_OID) :
1251 case T_JsonValueExpr:
1255 case T_JsonConstructorExpr:
1266 case T_JsonIsPredicate:
1276 case T_JsonBehavior:
1292 case T_CoerceToDomain:
1295 case T_CoerceToDomainValue:
1298 case T_SetToDefault:
1301 case T_CurrentOfExpr:
1305 case T_NextValueExpr:
1329 ((
Aggref *) expr)->inputcollid = inputcollation;
1332 ((
WindowFunc *) expr)->inputcollid = inputcollation;
1335 ((
FuncExpr *) expr)->inputcollid = inputcollation;
1338 ((
OpExpr *) expr)->inputcollid = inputcollation;
1340 case T_DistinctExpr:
1344 ((
NullIfExpr *) expr)->inputcollid = inputcollation;
1346 case T_ScalarArrayOpExpr:
1350 ((
MinMaxExpr *) expr)->inputcollid = inputcollation;
1397 loc = ((
const RangeVar *) expr)->location;
1400 loc = ((
const TableFunc *) expr)->location;
1403 loc = ((
const Var *) expr)->location;
1406 loc = ((
const Const *) expr)->location;
1409 loc = ((
const Param *) expr)->location;
1413 loc = ((
const Aggref *) expr)->location;
1415 case T_GroupingFunc:
1422 case T_MergeSupportFunc:
1425 case T_SubscriptingRef:
1438 case T_NamedArgExpr:
1448 case T_DistinctExpr:
1458 case T_ScalarArrayOpExpr:
1515 case T_ArrayCoerceExpr:
1524 case T_ConvertRowtypeExpr:
1539 loc = ((
const CaseExpr *) expr)->location;
1543 loc = ((
const CaseWhen *) expr)->location;
1547 loc = ((
const ArrayExpr *) expr)->location;
1551 loc = ((
const RowExpr *) expr)->location;
1553 case T_RowCompareExpr:
1557 case T_CoalesceExpr:
1565 case T_SQLValueFunction:
1581 case T_JsonValueExpr:
1584 case T_JsonConstructorExpr:
1587 case T_JsonIsPredicate:
1599 case T_JsonBehavior:
1620 case T_CoerceToDomain:
1629 case T_CoerceToDomainValue:
1632 case T_SetToDefault:
1635 case T_ReturningExpr:
1652 foreach(lc, (
const List *) expr)
1671 loc = ((
const ColumnRef *) expr)->location;
1674 loc = ((
const ParamRef *) expr)->location;
1677 loc = ((
const A_Const *) expr)->location;
1695 loc = ((
const ResTarget *) expr)->location;
1697 case T_MultiAssignRef:
1713 case T_CollateClause:
1722 loc = ((
const WindowDef *) expr)->location;
1724 case T_RangeTableSample:
1728 loc = ((
const TypeName *) expr)->location;
1731 loc = ((
const ColumnDef *) expr)->location;
1736 case T_FunctionParameter:
1739 case T_XmlSerialize:
1752 case T_OnConflictClause:
1755 case T_CTESearchClause:
1758 case T_CTECycleClause:
1761 case T_CommonTableExpr:
1764 case T_JsonKeyValue:
1768 case T_JsonObjectConstructor:
1771 case T_JsonArrayConstructor:
1774 case T_JsonArrayQueryConstructor:
1777 case T_JsonAggConstructor:
1780 case T_JsonObjectAgg:
1783 case T_JsonArrayAgg:
1786 case T_PlaceHolderVar:
1790 case T_InferenceElem:
1794 case T_PartitionElem:
1797 case T_PartitionSpec:
1800 case T_PartitionBoundSpec:
1803 case T_PartitionRangeDatum:
1827 return Min(loc1, loc2);
1919 if (checker(expr->
aggfnoid, context))
1927 if (checker(expr->
winfnoid, context))
1935 if (checker(expr->
funcid, context))
1940 case T_DistinctExpr:
1947 if (checker(expr->opfuncid, context))
1951 case T_ScalarArrayOpExpr:
1956 if (checker(expr->opfuncid, context))
1969 &iofunc, &typioparam);
1970 if (checker(iofunc, context))
1974 &iofunc, &typisvarlena);
1975 if (checker(iofunc, context))
1979 case T_RowCompareExpr:
1984 foreach(opid, rcexpr->opnos)
1988 if (checker(opfuncid, context))
2107#define WALK(n) walker((Node *) (n), context)
2109#define LIST_WALK(l) expression_tree_walker_impl((Node *) (l), walker, context)
2122 case T_CaseTestExpr:
2123 case T_SQLValueFunction:
2124 case T_CoerceToDomainValue:
2125 case T_SetToDefault:
2126 case T_CurrentOfExpr:
2127 case T_NextValueExpr:
2129 case T_SortGroupClause:
2130 case T_CTESearchClause:
2131 case T_MergeSupportFunc:
2134 case T_WithCheckOption:
2153 case T_GroupingFunc:
2170 if (
WALK(expr->runCondition))
2174 case T_WindowFuncRunCondition:
2182 case T_SubscriptingRef:
2207 case T_NamedArgExpr:
2210 case T_DistinctExpr:
2219 case T_ScalarArrayOpExpr:
2261 case T_AlternativeSubPlan:
2279 case T_ArrayCoerceExpr:
2289 case T_ConvertRowtypeExpr:
2300 foreach(temp, caseexpr->
args)
2318 case T_RowCompareExpr:
2328 case T_CoalesceExpr:
2343 case T_JsonValueExpr:
2353 case T_JsonConstructorExpr:
2365 case T_JsonIsPredicate:
2384 case T_JsonBehavior:
2396 case T_CoerceToDomain:
2403 case T_WindowClause:
2417 case T_CTECycleClause:
2427 case T_CommonTableExpr:
2438 if (
WALK(cte->search_clause))
2440 if (
WALK(cte->cycle_clause))
2444 case T_JsonKeyValue:
2454 case T_JsonObjectConstructor:
2462 case T_JsonArrayConstructor:
2470 case T_JsonArrayQueryConstructor:
2478 case T_JsonAggConstructor:
2490 case T_JsonObjectAgg:
2500 case T_JsonArrayAgg:
2511 case T_PartitionBoundSpec:
2523 case T_PartitionRangeDatum:
2532 foreach(temp, (
List *) node)
2548 case T_OnConflictExpr:
2574 case T_PartitionPruneStepOp:
2582 case T_PartitionPruneStepCombine:
2601 case T_SetOperationStmt:
2623 case T_PlaceHolderVar:
2625 case T_InferenceElem:
2627 case T_ReturningExpr:
2629 case T_AppendRelInfo:
2637 case T_PlaceHolderInfo:
2639 case T_RangeTblFunction:
2641 case T_TableSampleClause:
2655 if (
WALK(tf->ns_uris))
2663 if (
WALK(tf->coldefexprs))
2665 if (
WALK(tf->colvalexprs))
2667 if (
WALK(tf->passingvalexprs))
2672 elog(
ERROR,
"unrecognized node type: %d",
2714 if (
WALK(query->withCheckOptions))
2849 if (
WALK(rte->joinaliasvars))
2871 if (
WALK(rte->groupexprs))
2876 if (
WALK(rte->securityQuals))
2959#define FLATCOPY(newnode, node, nodetype) \
2960 ( (newnode) = (nodetype *) palloc(sizeof(nodetype)), \
2961 memcpy((newnode), (node), sizeof(nodetype)) )
2963#define MUTATE(newfield, oldfield, fieldtype) \
2964 ( (newfield) = (fieldtype) mutator((Node *) (oldfield), context) )
2986 return (
Node *) newnode;
2996 return (
Node *) newnode;
3000 case T_CaseTestExpr:
3001 case T_SQLValueFunction:
3003 case T_CoerceToDomainValue:
3004 case T_SetToDefault:
3005 case T_CurrentOfExpr:
3006 case T_NextValueExpr:
3008 case T_SortGroupClause:
3009 case T_CTESearchClause:
3010 case T_MergeSupportFunc:
3012 case T_WithCheckOption:
3019 return (
Node *) newnode;
3028 newnode->aggargtypes =
list_copy(aggref->aggargtypes);
3034 return (
Node *) newnode;
3037 case T_GroupingFunc:
3043 MUTATE(newnode->args, grouping->args,
List *);
3054 newnode->refs =
list_copy(grouping->refs);
3055 newnode->cols =
list_copy(grouping->cols);
3057 return (
Node *) newnode;
3068 return (
Node *) newnode;
3071 case T_WindowFuncRunCondition:
3078 return (
Node *) newnode;
3081 case T_SubscriptingRef:
3096 return (
Node *) newnode;
3106 return (
Node *) newnode;
3109 case T_NamedArgExpr:
3116 return (
Node *) newnode;
3126 return (
Node *) newnode;
3129 case T_DistinctExpr:
3136 return (
Node *) newnode;
3146 return (
Node *) newnode;
3149 case T_ScalarArrayOpExpr:
3156 return (
Node *) newnode;
3166 return (
Node *) newnode;
3182 return (
Node *) newnode;
3196 return (
Node *) newnode;
3199 case T_AlternativeSubPlan:
3206 return (
Node *) newnode;
3216 return (
Node *) newnode;
3227 newnode->fieldnums =
list_copy(fstore->fieldnums);
3228 return (
Node *) newnode;
3238 return (
Node *) newnode;
3248 return (
Node *) newnode;
3251 case T_ArrayCoerceExpr:
3259 return (
Node *) newnode;
3262 case T_ConvertRowtypeExpr:
3269 return (
Node *) newnode;
3279 return (
Node *) newnode;
3291 return (
Node *) newnode;
3302 return (
Node *) newnode;
3311 MUTATE(newnode->elements, arrayexpr->elements,
List *);
3312 return (
Node *) newnode;
3323 return (
Node *) newnode;
3326 case T_RowCompareExpr:
3334 return (
Node *) newnode;
3337 case T_CoalesceExpr:
3344 return (
Node *) newnode;
3354 return (
Node *) newnode;
3366 return (
Node *) newnode;
3369 case T_JsonReturning:
3377 return (
Node *) newnode;
3379 case T_JsonValueExpr:
3389 return (
Node *) newnode;
3391 case T_JsonConstructorExpr:
3402 return (
Node *) newnode;
3404 case T_JsonIsPredicate:
3413 return (
Node *) newnode;
3427 return (
Node *) newnode;
3430 case T_JsonBehavior:
3437 return (
Node *) newnode;
3447 return (
Node *) newnode;
3457 return (
Node *) newnode;
3460 case T_CoerceToDomain:
3467 return (
Node *) newnode;
3470 case T_ReturningExpr:
3477 return (
Node *) newnode;
3487 return (
Node *) newnode;
3493 case T_WindowClause:
3503 return (
Node *) newnode;
3506 case T_CTECycleClause:
3514 return (
Node *) newnode;
3517 case T_CommonTableExpr:
3533 return (
Node *) newnode;
3536 case T_PartitionBoundSpec:
3545 return (
Node *) newnode;
3548 case T_PartitionRangeDatum:
3555 return (
Node *) newnode;
3569 foreach(temp, (
List *) node)
3571 resultlist =
lappend(resultlist,
3575 return (
Node *) resultlist;
3586 return (
Node *) newnode;
3589 case T_OnConflictExpr:
3601 return (
Node *) newnode;
3613 return (
Node *) newnode;
3616 case T_PartitionPruneStepOp:
3624 return (
Node *) newnode;
3627 case T_PartitionPruneStepCombine:
3640 return (
Node *) newnode;
3643 case T_SetOperationStmt:
3652 return (
Node *) newnode;
3663 return (
Node *) newnode;
3666 case T_PlaceHolderVar:
3672 MUTATE(newnode->phexpr, phv->phexpr,
Expr *);
3674 return (
Node *) newnode;
3677 case T_InferenceElem:
3684 return (
Node *) newnode;
3687 case T_AppendRelInfo:
3695 return (
Node *) newnode;
3698 case T_PlaceHolderInfo:
3706 return (
Node *) newnode;
3709 case T_RangeTblFunction:
3717 return (
Node *) newnode;
3720 case T_TableSampleClause:
3728 return (
Node *) newnode;
3737 MUTATE(newnode->ns_uris, tf->ns_uris,
List *);
3741 MUTATE(newnode->coldefexprs, tf->coldefexprs,
List *);
3742 MUTATE(newnode->colvalexprs, tf->colvalexprs,
List *);
3743 MUTATE(newnode->passingvalexprs, tf->passingvalexprs,
List *);
3744 return (
Node *) newnode;
3748 elog(
ERROR,
"unrecognized node type: %d",
3793 MUTATE(query->withCheckOptions, query->withCheckOptions,
List *);
3836 resultlist =
lappend(resultlist, (
Node *) newnode);
3858 mutator, context, flags);
3900 MUTATE(newrte->joinaliasvars, rte->joinaliasvars,
List *);
3904 newrte->joinaliasvars =
copyObject(rte->joinaliasvars);
3923 MUTATE(newrte->groupexprs, rte->groupexprs,
List *);
3927 newrte->groupexprs =
copyObject(rte->groupexprs);
3931 MUTATE(newrte->securityQuals, rte->securityQuals,
List *);
3932 newrt =
lappend(newrt, newrte);
3980 return mutator(node, context);
4019 case T_SetToDefault:
4020 case T_CurrentOfExpr:
4021 case T_SQLValueFunction:
4030 case T_MergeSupportFunc:
4031 case T_ReturningOption:
4039 case T_GroupingFunc:
4059 foreach(temp, caseexpr->
args)
4075 case T_CoalesceExpr:
4090 case T_JsonReturning:
4092 case T_JsonValueExpr:
4104 case T_JsonParseExpr:
4114 case T_JsonScalarExpr:
4124 case T_JsonSerializeExpr:
4134 case T_JsonConstructorExpr:
4148 case T_JsonIsPredicate:
4150 case T_JsonArgument:
4152 case T_JsonFuncExpr:
4170 case T_JsonBehavior:
4194 case T_JsonTableColumn:
4208 case T_JsonTablePathSpec:
4224 if (
WALK(join->alias))
4237 if (
WALK(into->viewQuery))
4242 foreach(temp, (
List *) node)
4318 case T_MergeWhenClause:
4330 case T_ReturningClause:
4378 case T_PLAssignStmt:
4425 case T_NamedArgExpr:
4437 case T_A_Indirection:
4459 case T_MultiAssignRef:
4471 case T_CollateClause:
4489 case T_RangeSubselect:
4499 case T_RangeFunction:
4511 case T_RangeTableSample:
4524 case T_RangeTableFunc:
4540 case T_RangeTableFuncCol:
4585 case T_LockingClause:
4587 case T_XmlSerialize:
4609 case T_OnConflictClause:
4621 case T_CommonTableExpr:
4634 case T_JsonKeyValue:
4644 case T_JsonObjectConstructor:
4654 case T_JsonArrayConstructor:
4664 case T_JsonAggConstructor:
4678 case T_JsonObjectAgg:
4688 case T_JsonArrayAgg:
4698 case T_JsonArrayQueryConstructor:
4709 elog(
ERROR,
"unrecognized node type: %d",
4731#define PSWALK(n) walker(n, context)
4781 case T_SubqueryScan:
4835 for (
j = 0;
j < nplans;
j++)
#define OidIsValid(objectId)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define outerPlanState(node)
#define innerPlanState(node)
Assert(PointerIsAligned(start, uint64))
if(TABLE==NULL||TABLE_index==NULL)
List * lappend(List *list, void *datum)
List * list_copy(const List *oldlist)
void getTypeOutputInfo(Oid type, Oid *typOutput, bool *typIsVarlena)
RegProcedure get_opcode(Oid opno)
void getTypeInputInfo(Oid type, Oid *typInput, Oid *typIOParam)
Oid get_promoted_array_type(Oid typid)
bool query_tree_walker_impl(Query *query, tree_walker_callback walker, void *context, int flags)
#define FLATCOPY(newnode, node, nodetype)
bool raw_expression_tree_walker_impl(Node *node, tree_walker_callback walker, void *context)
Oid exprType(const Node *expr)
bool range_table_entry_walker_impl(RangeTblEntry *rte, tree_walker_callback walker, void *context, int flags)
bool exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod)
void exprSetCollation(Node *expr, Oid collation)
Oid exprInputCollation(const Node *expr)
int32 exprTypmod(const Node *expr)
static bool planstate_walk_subplans(List *plans, planstate_tree_walker_callback walker, void *context)
bool check_functions_in_node(Node *node, check_function_callback checker, void *context)
Oid exprCollation(const Node *expr)
static bool fix_opfuncids_walker(Node *node, void *context)
void exprSetInputCollation(Node *expr, Oid inputcollation)
bool query_or_expression_tree_walker_impl(Node *node, tree_walker_callback walker, void *context, int flags)
bool expression_tree_walker_impl(Node *node, tree_walker_callback walker, void *context)
bool range_table_walker_impl(List *rtable, tree_walker_callback walker, void *context, int flags)
Node * query_or_expression_tree_mutator_impl(Node *node, tree_mutator_callback mutator, void *context, int flags)
Query * query_tree_mutator_impl(Query *query, tree_mutator_callback mutator, void *context, int flags)
#define MUTATE(newfield, oldfield, fieldtype)
Node * applyRelabelType(Node *arg, Oid rtype, int32 rtypmod, Oid rcollid, CoercionForm rformat, int rlocation, bool overwrite_ok)
static int leftmostLoc(int loc1, int loc2)
Node * strip_implicit_coercions(Node *node)
int exprLocation(const Node *expr)
List * range_table_mutator_impl(List *rtable, tree_mutator_callback mutator, void *context, int flags)
bool expression_returns_set(Node *clause)
bool planstate_tree_walker_impl(PlanState *planstate, planstate_tree_walker_callback walker, void *context)
void fix_opfuncids(Node *node)
Node * expression_tree_mutator_impl(Node *node, tree_mutator_callback mutator, void *context)
Node * relabel_to_typmod(Node *expr, int32 typmod)
static bool expression_returns_set_walker(Node *node, void *context)
void set_sa_opfuncid(ScalarArrayOpExpr *opexpr)
static bool planstate_walk_members(PlanState **planstates, int nplans, planstate_tree_walker_callback walker, void *context)
void set_opfuncid(OpExpr *opexpr)
Node *(* tree_mutator_callback)(Node *node, void *context)
#define QTW_DONT_COPY_QUERY
#define QTW_IGNORE_CTE_SUBQUERIES
#define QTW_IGNORE_RT_SUBQUERIES
#define range_table_walker(rt, w, c, f)
bool(* planstate_tree_walker_callback)(struct PlanState *planstate, void *context)
#define query_tree_walker(q, w, c, f)
#define range_table_entry_walker(r, w, c, f)
#define QTW_EXAMINE_RTES_AFTER
#define QTW_EXAMINE_SORTGROUP
bool(* tree_walker_callback)(Node *node, void *context)
#define QTW_IGNORE_GROUPEXPRS
#define expression_tree_walker(n, w, c)
#define query_tree_mutator(q, m, c, f)
bool(* check_function_callback)(Oid func_id, void *context)
#define QTW_EXAMINE_RTES_BEFORE
#define range_table_mutator(rt, m, c, f)
#define QTW_IGNORE_RANGE_TABLE
#define QTW_IGNORE_JOINALIASES
#define IsA(nodeptr, _type_)
#define lfirst_node(type, lc)
static int list_length(const List *l)
#define linitial_node(type, l)
#define for_each_from(cell, lst, N)
static rewind_source * source
static int32 DatumGetInt32(Datum X)
static int fc(const char *x)
void check_stack_depth(void)
Node * cycle_mark_default
CollateClause * collClause
struct RestrictInfo * rinfo
JsonAggConstructor * constructor
JsonReturning * returning
JsonReturning * returning
JsonValueExpr * context_item
JsonAggConstructor * constructor
JsonReturning * returning
JsonTablePathSpec * pathspec
JsonValueExpr * context_item
Node * mergeJoinCondition
OnConflictExpr * onConflict
struct TableSampleClause * tablesample
struct PlanState * planstate