Remove some redundant set_cheapest() calls.

Commit e2fa76d80 centralized the responsibility for doing
set_cheapest() for a baserel, but these functions added later
seemingly didn't get the memo.  There's no apparent reason why
we need the cheapest path for these relation types to be available
any sooner than it is for other base relation types, so delete the
duplicate calls.  Doesn't save much since there's only one path
in these cases, but it might improve clarity.

Richard Guo

Discussion: 
https://postgr.es/m/cambws4-kfeu_fdujpncokuu3rwvzvkbeytkd9vrm4kh4-2h...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9d00cf47722a5d2876fc5c7727a395c0348dd304

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 6 ------
1 file changed, 6 deletions(-)

Reply via email to