postgresql/src/backend/optimizer/path
Tom Lane e6a30a8c3c Improve cost estimation for aggregates and window functions.
The previous coding failed to account properly for the costs of evaluating
the input expressions of aggregates and window functions, as seen in a
recent gripe from Claudio Freire.  (I said at the time that it wasn't
counting these costs at all; but on closer inspection, it was effectively
charging these costs once per output tuple.  That is completely wrong for
aggregates, and not exactly right for window functions either.)

There was also a hard-wired assumption that aggregates and window functions
had procost 1.0, which is now fixed to respect the actual cataloged costs.

The costing of WindowAgg is still pretty bogus, since it doesn't try to
estimate the effects of spilling data to disk, but that seems like a
separate issue.
2011-04-24 16:55:20 -04:00
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
allpaths.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
clausesel.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
costsize.c Improve cost estimation for aggregates and window functions. 2011-04-24 16:55:20 -04:00
equivclass.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
indxpath.c Pass collations to functions in FunctionCallInfoData, not FmgrInfo. 2011-04-12 19:19:24 -04:00
joinpath.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
joinrels.c Ensure mark_dummy_rel doesn't create dangling pointers in RelOptInfos. 2011-04-13 18:56:40 -04:00
orindxpath.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
pathkeys.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
tidpath.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00