Fix minor thinko in pathification code.

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

Commit: 61fd218930db53079e5f001dd4ea2fd53afd1b95
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-03-08T21:50:44Z
Releases: 9.6.0
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.

Files

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