mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Make more use of castNode()
This commit is contained in:
@ -903,8 +903,7 @@ transformFromClauseItem(ParseState *pstate, Node *n,
|
||||
rel = transformFromClauseItem(pstate, rts->relation,
|
||||
top_rte, top_rti, namespace);
|
||||
/* Currently, grammar could only return a RangeVar as contained rel */
|
||||
Assert(IsA(rel, RangeTblRef));
|
||||
rtr = (RangeTblRef *) rel;
|
||||
rtr = castNode(RangeTblRef, rel);
|
||||
rte = rt_fetch(rtr->rtindex, pstate->p_rtable);
|
||||
/* We only support this on plain relations and matviews */
|
||||
if (rte->relkind != RELKIND_RELATION &&
|
||||
|
Reference in New Issue
Block a user