]> granicus.if.org Git - postgresql/commit
Department of second thoughts: the rule that ORDER BY and DISTINCT are
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Mar 2008 02:00:11 +0000 (02:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Mar 2008 02:00:11 +0000 (02:00 +0000)
commit2e4094dad86bd0d2a55bf6a47ae9c75068afadc4
tree7e56f5da578e565824feabda1def2a637cb97a66
parent7692d8d5b72f510bd84f708d0a8e53c548f71adc
Department of second thoughts: the rule that ORDER BY and DISTINCT are
useless for an ungrouped-aggregate query holds regardless of whether
optimize_minmax_aggregates succeeds.  So we might as well apply the
optimization in any case.

I'll leave 8.3 as it was, since this version is a tad more invasive
than my earlier patch.
src/backend/optimizer/plan/planner.c