postgresql/src/include/nodes
Tom Lane 6fbc323c80 Further fallout from the MergeAppend patch.
Fix things so that top-N sorting can be used in child Sort nodes of a
MergeAppend node, when there is a LIMIT and no intervening joins or
grouping.  Actually doing this on the executor side isn't too bad,
but it's a bit messier to get the planner to cost it properly.
Per gripe from Robert Haas.

In passing, fix an oversight in the original top-N-sorting patch:
query_planner should not assume that a LIMIT can be used to make an
explicit sort cheaper when there will be grouping or aggregation in
between.  Possibly this should be back-patched, but I'm not sure the
mistake is serious enough to be a real problem in practice.
2010-11-18 00:30:10 -05:00
..
bitmapset.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
execnodes.h Avoid using a local FunctionCallInfoData struct in ExecMakeFunctionResult 2010-11-01 13:54:21 -04:00
makefuncs.h Fix incorrect generation of whole-row variables in planner. 2010-10-19 15:09:23 -04:00
memnodes.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
nodeFuncs.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
nodes.h Reimplement planner's handling of MIN/MAX aggregate optimization. 2010-11-04 12:01:17 -04:00
params.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
parsenodes.h Provide hashing support for arrays. 2010-10-30 21:56:11 -04:00
pg_list.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
plannodes.h Fix typos "are are". 2010-10-26 17:15:17 +09:00
primnodes.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
print.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
readfuncs.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
relation.h Further fallout from the MergeAppend patch. 2010-11-18 00:30:10 -05:00
tidbitmap.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
value.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00