Re: PoC: Partial sort

Jeremy Harris <jgh@wizmail.org>

From: Jeremy Harris <jgh@wizmail.org>
To: pgsql-hackers@postgresql.org
Date: 2014-01-18T17:10:01Z
Lists: pgsql-hackers
On 13/01/14 18:01, Alexander Korotkov wrote:
> Thanks. It's included into attached version of patch. As wall as estimation
> improvements, more comments and regression tests fix.

Would it be possible to totally separate the two sets of sort-keys,
only giving the non-index set to the tuplesort?  At present tuplesort
will, when it has a group to sort, make wasted compares on the
indexed set of keys before starting on the non-indexed set.
-- 
Cheers,
   Jeremy



Commits

  1. Implement Incremental Sort

  2. Improve memory management for external sorts.