Re: PoC: Partial sort
Andreas Karlsson <andreas@proxel.se>
From: Andreas Karlsson <andreas@proxel.se>
To: Alexander Korotkov <aekorotkov@gmail.com>
Cc: David Rowley <dgrowleyml@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>,
Andres Freund <andres@2ndquadrant.com>,
Martijn van Oosterhout <kleptog@svana.org>
Date: 2014-01-01T03:14:37Z
Lists: pgsql-hackers
On 12/28/2013 04:51 PM, Alexander Korotkov wrote: > I've compiled it with clang. Yeah, there was mixed declarations. I've > rechecked it with gcc, now it gives no warnings. I didn't try it with > visual studio, but I hope it will be OK. I looked at this version of the patch and noticed a possibility for improvement. You could decrement the bound for the tuplesort after every completed sort. Otherwise the optimizations for small limits wont apply to partial sort. -- Andreas Karlsson
Commits
-
Implement Incremental Sort
- d2d8a229bc58 13.0 landed
-
Improve memory management for external sorts.
- 0011c0091e88 9.6.0 cited