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:
1288 case T_CoerceToDomain:
1291 case T_CoerceToDomainValue:
1294 case T_SetToDefault:
1297 case T_CurrentOfExpr:
1301 case T_NextValueExpr:
1325 ((
Aggref *) expr)->inputcollid = inputcollation;
1328 ((
WindowFunc *) expr)->inputcollid = inputcollation;
1331 ((
FuncExpr *) expr)->inputcollid = inputcollation;
1334 ((
OpExpr *) expr)->inputcollid = inputcollation;
1336 case T_DistinctExpr:
1340 ((
NullIfExpr *) expr)->inputcollid = inputcollation;
1342 case T_ScalarArrayOpExpr:
1346 ((
MinMaxExpr *) expr)->inputcollid = inputcollation;
1393 loc = ((
const RangeVar *) expr)->location;
1396 loc = ((
const TableFunc *) expr)->location;
1399 loc = ((
const Var *) expr)->location;
1402 loc = ((
const Const *) expr)->location;
1405 loc = ((
const Param *) expr)->location;
1409 loc = ((
const Aggref *) expr)->location;
1411 case T_GroupingFunc:
1418 case T_MergeSupportFunc:
1421 case T_SubscriptingRef:
1434 case T_NamedArgExpr:
1444 case T_DistinctExpr:
1454 case T_ScalarArrayOpExpr:
1511 case T_ArrayCoerceExpr:
1520 case T_ConvertRowtypeExpr:
1535 loc = ((
const CaseExpr *) expr)->location;
1539 loc = ((
const CaseWhen *) expr)->location;
1543 loc = ((
const ArrayExpr *) expr)->location;
1547 loc = ((
const RowExpr *) expr)->location;
1549 case T_RowCompareExpr:
1553 case T_CoalesceExpr:
1561 case T_SQLValueFunction:
1577 case T_JsonValueExpr:
1580 case T_JsonConstructorExpr:
1583 case T_JsonIsPredicate:
1595 case T_JsonBehavior:
1616 case T_CoerceToDomain:
1625 case T_CoerceToDomainValue:
1628 case T_SetToDefault:
1631 case T_ReturningExpr:
1648 foreach(lc, (
const List *) expr)
1667 loc = ((
const ColumnRef *) expr)->location;
1670 loc = ((
const ParamRef *) expr)->location;
1673 loc = ((
const A_Const *) expr)->location;
1691 loc = ((
const ResTarget *) expr)->location;
1693 case T_MultiAssignRef:
1709 case T_CollateClause:
1718 loc = ((
const WindowDef *) expr)->location;
1720 case T_RangeTableSample:
1724 loc = ((
const TypeName *) expr)->location;
1727 loc = ((
const ColumnDef *) expr)->location;
1732 case T_FunctionParameter:
1735 case T_XmlSerialize:
1748 case T_OnConflictClause:
1751 case T_CTESearchClause:
1754 case T_CTECycleClause:
1757 case T_CommonTableExpr:
1760 case T_JsonKeyValue:
1764 case T_JsonObjectConstructor:
1767 case T_JsonArrayConstructor:
1770 case T_JsonArrayQueryConstructor:
1773 case T_JsonAggConstructor:
1776 case T_JsonObjectAgg:
1779 case T_JsonArrayAgg:
1782 case T_PlaceHolderVar:
1786 case T_InferenceElem:
1790 case T_PartitionElem:
1793 case T_PartitionSpec:
1796 case T_PartitionBoundSpec:
1799 case T_PartitionRangeDatum:
1823 return Min(loc1, loc2);
1915 if (checker(expr->
aggfnoid, context))
1923 if (checker(expr->
winfnoid, context))
1931 if (checker(expr->
funcid, context))
1936 case T_DistinctExpr:
1943 if (checker(expr->opfuncid, context))
1947 case T_ScalarArrayOpExpr:
1952 if (checker(expr->opfuncid, context))
1965 &iofunc, &typioparam);
1966 if (checker(iofunc, context))
1970 &iofunc, &typisvarlena);
1971 if (checker(iofunc, context))
1975 case T_RowCompareExpr:
1980 foreach(opid, rcexpr->opnos)
1984 if (checker(opfuncid, context))
2103#define WALK(n) walker((Node *) (n), context)
2105#define LIST_WALK(l) expression_tree_walker_impl((Node *) (l), walker, context)
2118 case T_CaseTestExpr:
2119 case T_SQLValueFunction:
2120 case T_CoerceToDomainValue:
2121 case T_SetToDefault:
2122 case T_CurrentOfExpr:
2123 case T_NextValueExpr:
2125 case T_SortGroupClause:
2126 case T_CTESearchClause:
2127 case T_MergeSupportFunc:
2130 case T_WithCheckOption:
2149 case T_GroupingFunc:
2166 if (
WALK(expr->runCondition))
2170 case T_WindowFuncRunCondition:
2178 case T_SubscriptingRef:
2203 case T_NamedArgExpr:
2206 case T_DistinctExpr:
2215 case T_ScalarArrayOpExpr:
2257 case T_AlternativeSubPlan:
2275 case T_ArrayCoerceExpr:
2285 case T_ConvertRowtypeExpr:
2296 foreach(temp, caseexpr->
args)
2314 case T_RowCompareExpr:
2324 case T_CoalesceExpr:
2339 case T_JsonValueExpr:
2349 case T_JsonConstructorExpr:
2361 case T_JsonIsPredicate:
2380 case T_JsonBehavior:
2392 case T_CoerceToDomain:
2399 case T_WindowClause:
2413 case T_CTECycleClause:
2423 case T_CommonTableExpr:
2434 if (
WALK(cte->search_clause))
2436 if (
WALK(cte->cycle_clause))
2440 case T_JsonKeyValue:
2450 case T_JsonObjectConstructor:
2458 case T_JsonArrayConstructor:
2466 case T_JsonArrayQueryConstructor:
2474 case T_JsonAggConstructor:
2486 case T_JsonObjectAgg:
2496 case T_JsonArrayAgg:
2507 case T_PartitionBoundSpec:
2519 case T_PartitionRangeDatum:
2528 foreach(temp, (
List *) node)
2544 case T_OnConflictExpr:
2570 case T_PartitionPruneStepOp:
2578 case T_PartitionPruneStepCombine:
2597 case T_SetOperationStmt:
2619 case T_PlaceHolderVar:
2621 case T_InferenceElem:
2623 case T_ReturningExpr:
2625 case T_AppendRelInfo:
2633 case T_PlaceHolderInfo:
2635 case T_RangeTblFunction:
2637 case T_TableSampleClause:
2651 if (
WALK(tf->ns_uris))
2659 if (
WALK(tf->coldefexprs))
2661 if (
WALK(tf->colvalexprs))
2663 if (
WALK(tf->passingvalexprs))
2668 elog(
ERROR,
"unrecognized node type: %d",
2710 if (
WALK(query->withCheckOptions))
2845 if (
WALK(rte->joinaliasvars))
2867 if (
WALK(rte->groupexprs))
2872 if (
WALK(rte->securityQuals))
2955#define FLATCOPY(newnode, node, nodetype) \
2956 ( (newnode) = (nodetype *) palloc(sizeof(nodetype)), \
2957 memcpy((newnode), (node), sizeof(nodetype)) )
2959#define MUTATE(newfield, oldfield, fieldtype) \
2960 ( (newfield) = (fieldtype) mutator((Node *) (oldfield), context) )
2982 return (
Node *) newnode;
2992 return (
Node *) newnode;
2996 case T_CaseTestExpr:
2997 case T_SQLValueFunction:
2999 case T_CoerceToDomainValue:
3000 case T_SetToDefault:
3001 case T_CurrentOfExpr:
3002 case T_NextValueExpr:
3004 case T_SortGroupClause:
3005 case T_CTESearchClause:
3006 case T_MergeSupportFunc:
3008 case T_WithCheckOption:
3015 return (
Node *) newnode;
3024 newnode->aggargtypes =
list_copy(aggref->aggargtypes);
3030 return (
Node *) newnode;
3033 case T_GroupingFunc:
3039 MUTATE(newnode->args, grouping->args,
List *);
3050 newnode->refs =
list_copy(grouping->refs);
3051 newnode->cols =
list_copy(grouping->cols);
3053 return (
Node *) newnode;
3064 return (
Node *) newnode;
3067 case T_WindowFuncRunCondition:
3074 return (
Node *) newnode;
3077 case T_SubscriptingRef:
3092 return (
Node *) newnode;
3102 return (
Node *) newnode;
3105 case T_NamedArgExpr:
3112 return (
Node *) newnode;
3122 return (
Node *) newnode;
3125 case T_DistinctExpr:
3132 return (
Node *) newnode;
3142 return (
Node *) newnode;
3145 case T_ScalarArrayOpExpr:
3152 return (
Node *) newnode;
3162 return (
Node *) newnode;
3178 return (
Node *) newnode;
3192 return (
Node *) newnode;
3195 case T_AlternativeSubPlan:
3202 return (
Node *) newnode;
3212 return (
Node *) newnode;
3223 newnode->fieldnums =
list_copy(fstore->fieldnums);
3224 return (
Node *) newnode;
3234 return (
Node *) newnode;
3244 return (
Node *) newnode;
3247 case T_ArrayCoerceExpr:
3255 return (
Node *) newnode;
3258 case T_ConvertRowtypeExpr:
3265 return (
Node *) newnode;
3275 return (
Node *) newnode;
3287 return (
Node *) newnode;
3298 return (
Node *) newnode;
3307 MUTATE(newnode->elements, arrayexpr->elements,
List *);
3308 return (
Node *) newnode;
3319 return (
Node *) newnode;
3322 case T_RowCompareExpr:
3330 return (
Node *) newnode;
3333 case T_CoalesceExpr:
3340 return (
Node *) newnode;
3350 return (
Node *) newnode;
3362 return (
Node *) newnode;
3365 case T_JsonReturning:
3373 return (
Node *) newnode;
3375 case T_JsonValueExpr:
3385 return (
Node *) newnode;
3387 case T_JsonConstructorExpr:
3398 return (
Node *) newnode;
3400 case T_JsonIsPredicate:
3409 return (
Node *) newnode;
3423 return (
Node *) newnode;
3426 case T_JsonBehavior:
3433 return (
Node *) newnode;
3443 return (
Node *) newnode;
3453 return (
Node *) newnode;
3456 case T_CoerceToDomain:
3463 return (
Node *) newnode;
3466 case T_ReturningExpr:
3473 return (
Node *) newnode;
3483 return (
Node *) newnode;
3489 case T_WindowClause:
3499 return (
Node *) newnode;
3502 case T_CTECycleClause:
3510 return (
Node *) newnode;
3513 case T_CommonTableExpr:
3529 return (
Node *) newnode;
3532 case T_PartitionBoundSpec:
3541 return (
Node *) newnode;
3544 case T_PartitionRangeDatum:
3551 return (
Node *) newnode;
3565 foreach(temp, (
List *) node)
3567 resultlist =
lappend(resultlist,
3571 return (
Node *) resultlist;
3582 return (
Node *) newnode;
3585 case T_OnConflictExpr:
3597 return (
Node *) newnode;
3609 return (
Node *) newnode;
3612 case T_PartitionPruneStepOp:
3620 return (
Node *) newnode;
3623 case T_PartitionPruneStepCombine:
3636 return (
Node *) newnode;
3639 case T_SetOperationStmt:
3648 return (
Node *) newnode;
3659 return (
Node *) newnode;
3662 case T_PlaceHolderVar:
3668 MUTATE(newnode->phexpr, phv->phexpr,
Expr *);
3670 return (
Node *) newnode;
3673 case T_InferenceElem:
3680 return (
Node *) newnode;
3683 case T_AppendRelInfo:
3691 return (
Node *) newnode;
3694 case T_PlaceHolderInfo:
3702 return (
Node *) newnode;
3705 case T_RangeTblFunction:
3713 return (
Node *) newnode;
3716 case T_TableSampleClause:
3724 return (
Node *) newnode;
3733 MUTATE(newnode->ns_uris, tf->ns_uris,
List *);
3737 MUTATE(newnode->coldefexprs, tf->coldefexprs,
List *);
3738 MUTATE(newnode->colvalexprs, tf->colvalexprs,
List *);
3739 MUTATE(newnode->passingvalexprs, tf->passingvalexprs,
List *);
3740 return (
Node *) newnode;
3744 elog(
ERROR,
"unrecognized node type: %d",
3789 MUTATE(query->withCheckOptions, query->withCheckOptions,
List *);
3832 resultlist =
lappend(resultlist, (
Node *) newnode);
3854 mutator, context, flags);
3896 MUTATE(newrte->joinaliasvars, rte->joinaliasvars,
List *);
3900 newrte->joinaliasvars =
copyObject(rte->joinaliasvars);
3919 MUTATE(newrte->groupexprs, rte->groupexprs,
List *);
3923 newrte->groupexprs =
copyObject(rte->groupexprs);
3927 MUTATE(newrte->securityQuals, rte->securityQuals,
List *);
3928 newrt =
lappend(newrt, newrte);
3976 return mutator(node, context);
4015 case T_SetToDefault:
4016 case T_CurrentOfExpr:
4017 case T_SQLValueFunction:
4026 case T_MergeSupportFunc:
4027 case T_ReturningOption:
4035 case T_GroupingFunc:
4055 foreach(temp, caseexpr->
args)
4071 case T_CoalesceExpr:
4086 case T_JsonReturning:
4088 case T_JsonValueExpr:
4100 case T_JsonParseExpr:
4110 case T_JsonScalarExpr:
4120 case T_JsonSerializeExpr:
4130 case T_JsonConstructorExpr:
4144 case T_JsonIsPredicate:
4146 case T_JsonArgument:
4148 case T_JsonFuncExpr:
4166 case T_JsonBehavior:
4190 case T_JsonTableColumn:
4204 case T_JsonTablePathSpec:
4220 if (
WALK(join->alias))
4233 if (
WALK(into->viewQuery))
4238 foreach(temp, (
List *) node)
4314 case T_MergeWhenClause:
4326 case T_ReturningClause:
4374 case T_PLAssignStmt:
4421 case T_NamedArgExpr:
4433 case T_A_Indirection:
4455 case T_MultiAssignRef:
4467 case T_CollateClause:
4485 case T_RangeSubselect:
4495 case T_RangeFunction:
4507 case T_RangeTableSample:
4520 case T_RangeTableFunc:
4536 case T_RangeTableFuncCol:
4581 case T_LockingClause:
4583 case T_XmlSerialize:
4605 case T_OnConflictClause:
4617 case T_CommonTableExpr:
4630 case T_JsonKeyValue:
4640 case T_JsonObjectConstructor:
4650 case T_JsonArrayConstructor:
4660 case T_JsonAggConstructor:
4674 case T_JsonObjectAgg:
4684 case T_JsonArrayAgg:
4694 case T_JsonArrayQueryConstructor:
4705 elog(
ERROR,
"unrecognized node type: %d",
4727#define PSWALK(n) walker(n, context)
4777 case T_SubqueryScan:
4831 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)
#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)
bool(* planstate_tree_walker_callback)(PlanState *planstate, 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