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:
@ -224,11 +224,9 @@ set_plan_references(PlannerInfo *root, Plan *plan)
|
||||
*/
|
||||
foreach(lc, root->rowMarks)
|
||||
{
|
||||
PlanRowMark *rc = (PlanRowMark *) lfirst(lc);
|
||||
PlanRowMark *rc = castNode(PlanRowMark, lfirst(lc));
|
||||
PlanRowMark *newrc;
|
||||
|
||||
Assert(IsA(rc, PlanRowMark));
|
||||
|
||||
/* flat copy is enough since all fields are scalars */
|
||||
newrc = (PlanRowMark *) palloc(sizeof(PlanRowMark));
|
||||
memcpy(newrc, rc, sizeof(PlanRowMark));
|
||||
|
Reference in New Issue
Block a user