postgresql/src/backend/utils/sort
Tom Lane 2415ad9831 Teach tuplestore.c to throw away data before the "mark" point when the caller
is using mark/restore but not rewind or backward-scan capability.  Insert a
materialize plan node between a mergejoin and its inner child if the inner
child is a sort that is expected to spill to disk.  The materialize shields
the sort from the need to do mark/restore and thereby allows it to perform
its final merge pass on-the-fly; while the materialize itself is normally
cheap since it won't spill to disk unless the number of tuples with equal
key values exceeds work_mem.

Greg Stark, with some kibitzing from Tom Lane.
2007-05-21 17:57:35 +00:00
..
logtape.c Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
Makefile Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
tuplesort.c Add a line to the EXPLAIN ANALYZE output for a Sort node, showing the 2007-05-04 21:29:53 +00:00
tuplestore.c Teach tuplestore.c to throw away data before the "mark" point when the caller 2007-05-21 17:57:35 +00:00