redistribute Limit nodes nested in MinMaxAggPath
authorTomas Vondra <[email protected]>
Sat, 28 Jan 2017 22:43:01 +0000 (23:43 +0100)
committerTomas Vondra <[email protected]>
Sat, 28 Jan 2017 22:43:01 +0000 (23:43 +0100)
commit6f64f49eb8d64baf077f13ffc2e3fd3f49b730bb
tree59a32270570f9d31bd6082a0bf0cde677d167150
parentc0f9112b6a61319cc722831e978f7a86cc68b95d
redistribute Limit nodes nested in MinMaxAggPath

Make sure min/max path are redistributed. Doing it in createplan.c
is probably only a temporary solution, though. First, it breaks
the costing model (the path cost does not include the redistribution),
and it also probably breaks how distribution is propagated up the
path tree.
src/backend/optimizer/plan/createplan.c