Remove duplicate code in planner.c.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8d396a0a7046438ced8d8ada6ceb7c0756e58351
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-02-14T16:47:45Z
Releases: 10.0
Remove duplicate code in planner.c.

I noticed while hacking on join UNION transforms that planner.c's
function get_base_rel_indexes() just duplicates the functionality of
get_relids_in_jointree().  It doesn't even have the excuse of being
older code :-(.  Drop it and use the latter function instead.

Files

PathChange+/−
src/backend/optimizer/plan/planner.c modified +1 −47