postgresql/src
Tom Lane d26559dbf3 Teach tuplesort.c about "top N" sorting, in which only the first N tuples
need be returned.  We keep a heap of the current best N tuples and sift-up
new tuples into it as we scan the input.  For M input tuples this means
only about M*log(N) comparisons instead of M*log(M), not to mention a lot
less workspace when N is small --- avoiding spill-to-disk for large M
is actually the most attractive thing about it.  Patch includes planner
and executor support for invoking this facility in ORDER BY ... LIMIT
queries.  Greg Stark, with some editorialization by moi.
2007-05-04 01:13:45 +00:00
..
backend Teach tuplesort.c about "top N" sorting, in which only the first N tuples 2007-05-04 01:13:45 +00:00
bin Another tweak for tab completion of CREATE TEMP. Instead of only 2007-04-26 22:25:56 +00:00
include Teach tuplesort.c about "top N" sorting, in which only the first N tuples 2007-05-04 01:13:45 +00:00
interfaces Removed non-existant function from extern.h 2007-04-27 07:55:14 +00:00
makefiles Add $(CFLAGS) to the simplified build rule for .so libraries on Darwin. 2006-11-28 05:45:43 +00:00
pl Support for MOVE in PL/PgSQL. Initial patch from Magnus, some improvements 2007-04-29 01:21:09 +00:00
port Silence mingw compiler warning 2007-04-18 08:32:40 +00:00
template Make --with-ldap build on Unixware, per Olivier Prenant. 2006-12-14 21:49:54 +00:00
test Fix a thinko in my patch of a couple months ago for bug #3116: it did the 2007-05-01 18:53:52 +00:00
timezone Sync timezone data with 2007e zic release. 2007-04-19 22:44:32 +00:00
tools Release builds generate different strangely formatted export names 2007-05-03 14:04:03 +00:00
tutorial Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). 2007-02-27 23:48:10 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
Makefile.global.in Contrib module uuid-ossp for generating UUID values using the OSSP UUID 2007-04-21 17:26:18 +00:00
Makefile.shlib Change $(CC) to $(COMPILER) on Solaris gcc so -m64 is passed into the 2007-02-20 22:45:57 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00