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_PlaceHolderVar:
306 return ((
const Var *) expr)->vartypmod;
308 return ((
const Const *) expr)->consttypmod;
310 return ((
const Param *) expr)->paramtypmod;
311 case T_SubscriptingRef:
319 return coercedTypmod;
347 elog(
ERROR,
"cannot get type for untransformed sublink");
370 case T_AlternativeSubPlan:
382 case T_ArrayCoerceExpr:
393 Oid casetype = cexpr->casetype;
434 if (arrayexpr->multidims)
435 commontype = arrayexpr->array_typeid;
437 commontype = arrayexpr->element_typeid;
457 Oid coalescetype = cexpr->coalescetype;
485 Oid minmaxtype = mexpr->minmaxtype;
506 case T_SQLValueFunction:
508 case T_JsonValueExpr:
510 case T_JsonConstructorExpr:
526 case T_CoerceToDomain:
528 case T_CoerceToDomainValue:
532 case T_PlaceHolderVar:
554 if (coercedTypmod != NULL)
580 if (nargs < 2 || nargs > 3)
586 second_arg->constisnull)
592 if (coercedTypmod != NULL)
603 if (acoerce->resulttypmod < 0)
609 if (coercedTypmod != NULL)
610 *coercedTypmod = acoerce->resulttypmod;
650 con->consttypmod = rtypmod;
651 con->constcollid = rcollid;
669 newrelabel->resulttypmod = rtypmod;
670 newrelabel->resultcollid = rcollid;
671 newrelabel->relabelformat = rformat;
673 return (
Node *) newrelabel;
772 if (expr->funcretset)
826 coll = ((
const Var *) expr)->varcollid;
829 coll = ((
const Const *) expr)->constcollid;
832 coll = ((
const Param *) expr)->paramcollid;
835 coll = ((
const Aggref *) expr)->aggcollid;
841 coll = ((
const WindowFunc *) expr)->wincollid;
843 case T_MergeSupportFunc:
846 case T_SubscriptingRef:
850 coll = ((
const FuncExpr *) expr)->funccollid;
856 coll = ((
const OpExpr *) expr)->opcollid;
864 case T_ScalarArrayOpExpr:
884 elog(
ERROR,
"cannot get collation for untransformed sublink");
915 case T_AlternativeSubPlan:
936 case T_ArrayCoerceExpr:
939 case T_ConvertRowtypeExpr:
947 coll = ((
const CaseExpr *) expr)->casecollid;
953 coll = ((
const ArrayExpr *) expr)->array_collid;
959 case T_RowCompareExpr:
967 coll = ((
const MinMaxExpr *) expr)->minmaxcollid;
969 case T_SQLValueFunction:
972 coll = C_COLLATION_OID;
984 coll = DEFAULT_COLLATION_OID;
988 case T_JsonValueExpr:
991 case T_JsonConstructorExpr:
1001 case T_JsonIsPredicate:
1012 case T_JsonBehavior:
1030 case T_CoerceToDomain:
1033 case T_CoerceToDomainValue:
1036 case T_SetToDefault:
1039 case T_CurrentOfExpr:
1043 case T_NextValueExpr:
1047 case T_InferenceElem:
1050 case T_PlaceHolderVar:
1078 coll = ((
const Aggref *) expr)->inputcollid;
1081 coll = ((
const WindowFunc *) expr)->inputcollid;
1084 coll = ((
const FuncExpr *) expr)->inputcollid;
1087 coll = ((
const OpExpr *) expr)->inputcollid;
1089 case T_DistinctExpr:
1093 coll = ((
const NullIfExpr *) expr)->inputcollid;
1095 case T_ScalarArrayOpExpr:
1099 coll = ((
const MinMaxExpr *) expr)->inputcollid;
1121 ((
Var *) expr)->varcollid = collation;
1124 ((
Const *) expr)->constcollid = collation;
1127 ((
Param *) expr)->paramcollid = collation;
1130 ((
Aggref *) expr)->aggcollid = collation;
1132 case T_GroupingFunc:
1136 ((
WindowFunc *) expr)->wincollid = collation;
1138 case T_MergeSupportFunc:
1141 case T_SubscriptingRef:
1145 ((
FuncExpr *) expr)->funccollid = collation;
1147 case T_NamedArgExpr:
1151 ((
OpExpr *) expr)->opcollid = collation;
1153 case T_DistinctExpr:
1159 case T_ScalarArrayOpExpr:
1168#ifdef USE_ASSERT_CHECKING
1180 elog(
ERROR,
"cannot set collation for untransformed sublink");
1206 case T_ArrayCoerceExpr:
1209 case T_ConvertRowtypeExpr:
1214 ((
CaseExpr *) expr)->casecollid = collation;
1217 ((
ArrayExpr *) expr)->array_collid = collation;
1223 case T_RowCompareExpr:
1227 case T_CoalesceExpr:
1231 ((
MinMaxExpr *) expr)->minmaxcollid = collation;
1233 case T_SQLValueFunction:
1235 (collation == C_COLLATION_OID) :
1240 (collation == DEFAULT_COLLATION_OID) :
1243 case T_JsonValueExpr:
1247 case T_JsonConstructorExpr:
1258 case T_JsonIsPredicate:
1268 case T_JsonBehavior:
1284 case T_CoerceToDomain:
1287 case T_CoerceToDomainValue:
1290 case T_SetToDefault:
1293 case T_CurrentOfExpr:
1297 case T_NextValueExpr:
1321 ((
Aggref *) expr)->inputcollid = inputcollation;
1324 ((
WindowFunc *) expr)->inputcollid = inputcollation;
1327 ((
FuncExpr *) expr)->inputcollid = inputcollation;
1330 ((
OpExpr *) expr)->inputcollid = inputcollation;
1332 case T_DistinctExpr:
1336 ((
NullIfExpr *) expr)->inputcollid = inputcollation;
1338 case T_ScalarArrayOpExpr:
1342 ((
MinMaxExpr *) expr)->inputcollid = inputcollation;
1389 loc = ((
const RangeVar *) expr)->location;
1392 loc = ((
const TableFunc *) expr)->location;
1395 loc = ((
const Var *) expr)->location;
1398 loc = ((
const Const *) expr)->location;
1401 loc = ((
const Param *) expr)->location;
1405 loc = ((
const Aggref *) expr)->location;
1407 case T_GroupingFunc:
1414 case T_MergeSupportFunc:
1417 case T_SubscriptingRef:
1430 case T_NamedArgExpr:
1440 case T_DistinctExpr:
1450 case T_ScalarArrayOpExpr:
1507 case T_ArrayCoerceExpr:
1516 case T_ConvertRowtypeExpr:
1531 loc = ((
const CaseExpr *) expr)->location;
1535 loc = ((
const CaseWhen *) expr)->location;
1539 loc = ((
const ArrayExpr *) expr)->location;
1543 loc = ((
const RowExpr *) expr)->location;
1545 case T_RowCompareExpr:
1549 case T_CoalesceExpr:
1557 case T_SQLValueFunction:
1573 case T_JsonValueExpr:
1576 case T_JsonConstructorExpr:
1579 case T_JsonIsPredicate:
1591 case T_JsonBehavior:
1612 case T_CoerceToDomain:
1621 case T_CoerceToDomainValue:
1624 case T_SetToDefault:
1641 foreach(lc, (
const List *) expr)
1660 loc = ((
const ColumnRef *) expr)->location;
1663 loc = ((
const ParamRef *) expr)->location;
1666 loc = ((
const A_Const *) expr)->location;
1684 loc = ((
const ResTarget *) expr)->location;
1686 case T_MultiAssignRef:
1702 case T_CollateClause:
1711 loc = ((
const WindowDef *) expr)->location;
1713 case T_RangeTableSample:
1717 loc = ((
const TypeName *) expr)->location;
1720 loc = ((
const ColumnDef *) expr)->location;
1725 case T_FunctionParameter:
1728 case T_XmlSerialize:
1741 case T_OnConflictClause:
1744 case T_CTESearchClause:
1747 case T_CTECycleClause:
1750 case T_CommonTableExpr:
1753 case T_JsonKeyValue:
1757 case T_JsonObjectConstructor:
1760 case T_JsonArrayConstructor:
1763 case T_JsonArrayQueryConstructor:
1766 case T_JsonAggConstructor:
1769 case T_JsonObjectAgg:
1772 case T_JsonArrayAgg:
1775 case T_PlaceHolderVar:
1779 case T_InferenceElem:
1783 case T_PartitionElem:
1786 case T_PartitionSpec:
1789 case T_PartitionBoundSpec:
1792 case T_PartitionRangeDatum:
1816 return Min(loc1, loc2);
1908 if (checker(expr->
aggfnoid, context))
1916 if (checker(expr->
winfnoid, context))
1924 if (checker(expr->
funcid, context))
1929 case T_DistinctExpr:
1936 if (checker(expr->opfuncid, context))
1940 case T_ScalarArrayOpExpr:
1945 if (checker(expr->opfuncid, context))
1958 &iofunc, &typioparam);
1959 if (checker(iofunc, context))
1963 &iofunc, &typisvarlena);
1964 if (checker(iofunc, context))
1968 case T_RowCompareExpr:
1973 foreach(opid, rcexpr->opnos)
1977 if (checker(opfuncid, context))
2096#define WALK(n) walker((Node *) (n), context)
2098#define LIST_WALK(l) expression_tree_walker_impl((Node *) (l), walker, context)
2111 case T_CaseTestExpr:
2112 case T_SQLValueFunction:
2113 case T_CoerceToDomainValue:
2114 case T_SetToDefault:
2115 case T_CurrentOfExpr:
2116 case T_NextValueExpr:
2118 case T_SortGroupClause:
2119 case T_CTESearchClause:
2120 case T_MergeSupportFunc:
2123 case T_WithCheckOption:
2142 case T_GroupingFunc:
2159 if (
WALK(expr->runCondition))
2163 case T_WindowFuncRunCondition:
2171 case T_SubscriptingRef:
2196 case T_NamedArgExpr:
2199 case T_DistinctExpr:
2208 case T_ScalarArrayOpExpr:
2250 case T_AlternativeSubPlan:
2268 case T_ArrayCoerceExpr:
2278 case T_ConvertRowtypeExpr:
2289 foreach(temp, caseexpr->
args)
2307 case T_RowCompareExpr:
2317 case T_CoalesceExpr:
2332 case T_JsonValueExpr:
2342 case T_JsonConstructorExpr:
2354 case T_JsonIsPredicate:
2373 case T_JsonBehavior:
2385 case T_CoerceToDomain:
2392 case T_WindowClause:
2406 case T_CTECycleClause:
2416 case T_CommonTableExpr:
2427 if (
WALK(cte->search_clause))
2429 if (
WALK(cte->cycle_clause))
2433 case T_JsonKeyValue:
2443 case T_JsonObjectConstructor:
2451 case T_JsonArrayConstructor:
2459 case T_JsonArrayQueryConstructor:
2467 case T_JsonAggConstructor:
2479 case T_JsonObjectAgg:
2489 case T_JsonArrayAgg:
2500 case T_PartitionBoundSpec:
2512 case T_PartitionRangeDatum:
2521 foreach(temp, (
List *) node)
2537 case T_OnConflictExpr:
2563 case T_PartitionPruneStepOp:
2571 case T_PartitionPruneStepCombine:
2590 case T_SetOperationStmt:
2612 case T_PlaceHolderVar:
2614 case T_InferenceElem:
2616 case T_AppendRelInfo:
2624 case T_PlaceHolderInfo:
2626 case T_RangeTblFunction:
2628 case T_TableSampleClause:
2642 if (
WALK(tf->ns_uris))
2650 if (
WALK(tf->coldefexprs))
2652 if (
WALK(tf->colvalexprs))
2654 if (
WALK(tf->passingvalexprs))
2659 elog(
ERROR,
"unrecognized node type: %d",
2701 if (
WALK(query->withCheckOptions))
2836 if (
WALK(rte->joinaliasvars))
2858 if (
WALK(rte->groupexprs))
2863 if (
WALK(rte->securityQuals))
2946#define FLATCOPY(newnode, node, nodetype) \
2947 ( (newnode) = (nodetype *) palloc(sizeof(nodetype)), \
2948 memcpy((newnode), (node), sizeof(nodetype)) )
2950#define MUTATE(newfield, oldfield, fieldtype) \
2951 ( (newfield) = (fieldtype) mutator((Node *) (oldfield), context) )
2973 return (
Node *) newnode;
2983 return (
Node *) newnode;
2987 case T_CaseTestExpr:
2988 case T_SQLValueFunction:
2990 case T_CoerceToDomainValue:
2991 case T_SetToDefault:
2992 case T_CurrentOfExpr:
2993 case T_NextValueExpr:
2995 case T_SortGroupClause:
2996 case T_CTESearchClause:
2997 case T_MergeSupportFunc:
2999 case T_WithCheckOption:
3006 return (
Node *) newnode;
3015 newnode->aggargtypes =
list_copy(aggref->aggargtypes);
3021 return (
Node *) newnode;
3024 case T_GroupingFunc:
3030 MUTATE(newnode->args, grouping->args,
List *);
3041 newnode->refs =
list_copy(grouping->refs);
3042 newnode->cols =
list_copy(grouping->cols);
3044 return (
Node *) newnode;
3055 return (
Node *) newnode;
3058 case T_WindowFuncRunCondition:
3065 return (
Node *) newnode;
3068 case T_SubscriptingRef:
3083 return (
Node *) newnode;
3093 return (
Node *) newnode;
3096 case T_NamedArgExpr:
3103 return (
Node *) newnode;
3113 return (
Node *) newnode;
3116 case T_DistinctExpr:
3123 return (
Node *) newnode;
3133 return (
Node *) newnode;
3136 case T_ScalarArrayOpExpr:
3143 return (
Node *) newnode;
3153 return (
Node *) newnode;
3169 return (
Node *) newnode;
3183 return (
Node *) newnode;
3186 case T_AlternativeSubPlan:
3193 return (
Node *) newnode;
3203 return (
Node *) newnode;
3214 newnode->fieldnums =
list_copy(fstore->fieldnums);
3215 return (
Node *) newnode;
3225 return (
Node *) newnode;
3235 return (
Node *) newnode;
3238 case T_ArrayCoerceExpr:
3246 return (
Node *) newnode;
3249 case T_ConvertRowtypeExpr:
3256 return (
Node *) newnode;
3266 return (
Node *) newnode;
3278 return (
Node *) newnode;
3289 return (
Node *) newnode;
3299 return (
Node *) newnode;
3310 return (
Node *) newnode;
3313 case T_RowCompareExpr:
3321 return (
Node *) newnode;
3324 case T_CoalesceExpr:
3331 return (
Node *) newnode;
3341 return (
Node *) newnode;
3353 return (
Node *) newnode;
3356 case T_JsonReturning:
3364 return (
Node *) newnode;
3366 case T_JsonValueExpr:
3376 return (
Node *) newnode;
3378 case T_JsonConstructorExpr:
3389 return (
Node *) newnode;
3391 case T_JsonIsPredicate:
3400 return (
Node *) newnode;
3414 return (
Node *) newnode;
3417 case T_JsonBehavior:
3424 return (
Node *) newnode;
3434 return (
Node *) newnode;
3444 return (
Node *) newnode;
3447 case T_CoerceToDomain:
3454 return (
Node *) newnode;
3464 return (
Node *) newnode;
3470 case T_WindowClause:
3480 return (
Node *) newnode;
3483 case T_CTECycleClause:
3491 return (
Node *) newnode;
3494 case T_CommonTableExpr:
3510 return (
Node *) newnode;
3513 case T_PartitionBoundSpec:
3522 return (
Node *) newnode;
3525 case T_PartitionRangeDatum:
3532 return (
Node *) newnode;
3546 foreach(temp, (
List *) node)
3548 resultlist =
lappend(resultlist,
3552 return (
Node *) resultlist;
3563 return (
Node *) newnode;
3566 case T_OnConflictExpr:
3578 return (
Node *) newnode;
3590 return (
Node *) newnode;
3593 case T_PartitionPruneStepOp:
3601 return (
Node *) newnode;
3604 case T_PartitionPruneStepCombine:
3617 return (
Node *) newnode;
3620 case T_SetOperationStmt:
3629 return (
Node *) newnode;
3640 return (
Node *) newnode;
3643 case T_PlaceHolderVar:
3649 MUTATE(newnode->phexpr, phv->phexpr,
Expr *);
3651 return (
Node *) newnode;
3654 case T_InferenceElem:
3661 return (
Node *) newnode;
3664 case T_AppendRelInfo:
3672 return (
Node *) newnode;
3675 case T_PlaceHolderInfo:
3683 return (
Node *) newnode;
3686 case T_RangeTblFunction:
3694 return (
Node *) newnode;
3697 case T_TableSampleClause:
3705 return (
Node *) newnode;
3714 MUTATE(newnode->ns_uris, tf->ns_uris,
List *);
3718 MUTATE(newnode->coldefexprs, tf->coldefexprs,
List *);
3719 MUTATE(newnode->colvalexprs, tf->colvalexprs,
List *);
3720 MUTATE(newnode->passingvalexprs, tf->passingvalexprs,
List *);
3721 return (
Node *) newnode;
3725 elog(
ERROR,
"unrecognized node type: %d",
3770 MUTATE(query->withCheckOptions, query->withCheckOptions,
List *);
3813 resultlist =
lappend(resultlist, (
Node *) newnode);
3835 mutator, context, flags);
3877 MUTATE(newrte->joinaliasvars, rte->joinaliasvars,
List *);
3881 newrte->joinaliasvars =
copyObject(rte->joinaliasvars);
3900 MUTATE(newrte->groupexprs, rte->groupexprs,
List *);
3904 newrte->groupexprs =
copyObject(rte->groupexprs);
3908 MUTATE(newrte->securityQuals, rte->securityQuals,
List *);
3909 newrt =
lappend(newrt, newrte);
3957 return mutator(node, context);
3996 case T_SetToDefault:
3997 case T_CurrentOfExpr:
3998 case T_SQLValueFunction:
4007 case T_MergeSupportFunc:
4015 case T_GroupingFunc:
4035 foreach(temp, caseexpr->
args)
4051 case T_CoalesceExpr:
4066 case T_JsonReturning:
4068 case T_JsonValueExpr:
4080 case T_JsonParseExpr:
4090 case T_JsonScalarExpr:
4100 case T_JsonSerializeExpr:
4110 case T_JsonConstructorExpr:
4124 case T_JsonIsPredicate:
4126 case T_JsonArgument:
4128 case T_JsonFuncExpr:
4146 case T_JsonBehavior:
4170 case T_JsonTableColumn:
4184 case T_JsonTablePathSpec:
4200 if (
WALK(join->alias))
4213 if (
WALK(into->viewQuery))
4218 foreach(temp, (
List *) node)
4294 case T_MergeWhenClause:
4344 case T_PLAssignStmt:
4391 case T_NamedArgExpr:
4403 case T_A_Indirection:
4425 case T_MultiAssignRef:
4437 case T_CollateClause:
4455 case T_RangeSubselect:
4465 case T_RangeFunction:
4477 case T_RangeTableSample:
4490 case T_RangeTableFunc:
4506 case T_RangeTableFuncCol:
4551 case T_LockingClause:
4553 case T_XmlSerialize:
4575 case T_OnConflictClause:
4587 case T_CommonTableExpr:
4600 case T_JsonKeyValue:
4610 case T_JsonObjectConstructor:
4620 case T_JsonArrayConstructor:
4630 case T_JsonAggConstructor:
4644 case T_JsonObjectAgg:
4654 case T_JsonArrayAgg:
4664 case T_JsonArrayQueryConstructor:
4675 elog(
ERROR,
"unrecognized node type: %d",
4697#define PSWALK(n) walker(n, context)
4747 case T_SubqueryScan:
4801 for (
j = 0;
j < nplans;
j++)
#define Assert(condition)
#define OidIsValid(objectId)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define outerPlanState(node)
#define innerPlanState(node)
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