set_rel_pathlist function unnecessary params. - Mailing list pgsql-hackers

From Kirill Reshke
Subject set_rel_pathlist function unnecessary params.
Date
Msg-id CALdSSPh+0z5=7aVMTpAr-qhOdTTT4rLrr2YsRiBO6uznJD1Kew@mail.gmail.com
Whole thread Raw
Responses Re: set_rel_pathlist function unnecessary params.
List pgsql-hackers
I happened to notice that `set_rel_pathlist` params, RelOptInfo *rel
and RangeTblEntry *rte are
unnecessary, because upon all usages,
`rte=root->simple_rte_array[rti]` and
`rel=root->simple_rel_array[rti]` holds. What's the point of providing
the same information 3 times? Is it kept like that for extension
backward compatibility.

So, I propose to refactor this a little bit.

Am I missing something?



-- 
Best regards,
Kirill Reshke



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: AIO v2.0
Next
From: Tom Lane
Date:
Subject: Re: set_rel_pathlist function unnecessary params.