]> granicus.if.org Git - postgresql/commit
Fix minor thinko in pathification code.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Mar 2016 21:50:32 +0000 (16:50 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Mar 2016 21:50:44 +0000 (16:50 -0500)
commit61fd218930db53079e5f001dd4ea2fd53afd1b95
treeb781a4096892e847c599cbddd9370f21e6f7ea8b
parente66197fa2efa8ae0cab1eed6b2257ab4e2134b1e
Fix minor thinko in pathification code.

I passed the wrong "root" struct to create_pathtarget in build_minmax_path.
Since the subroot is a clone of the outer root, this would not cause any
serious problems, but it would waste some cycles because
set_pathtarget_cost_width would not have access to Var width estimates
set up while running query_planner on the subroot.
src/backend/optimizer/plan/planagg.c