git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 719c84c) | patch
Use quicksort, not replacement selection, for external sorting.
Fri, 8 Apr 2016 06:36:26 +0000 (02:36 -0400)
Fri, 8 Apr 2016 06:36:26 +0000 (02:36 -0400)
commit 0711803775a37e0bf39d7efdd1e34d9d7e640ea1
Use quicksort, not replacement selection, for external sorting.

We still use replacement selection for the first run of the sort only
and only when the number of tuples is relatively small. Otherwise,
the first run, and subsequent runs in all cases, are produced using
quicksort. This tends to be faster except perhaps for very small
amounts of working memory.

Peter Geoghegan, reviewed by Tomas Vondra, Jeff Janes, Mithun Cy,
Greg Stark, and me.
doc/src/sgml/config.sgml diff | blob | blame | history
src/backend/optimizer/path/costsize.c diff | blob | blame | history
src/backend/utils/init/globals.c diff | blob | blame | history
src/backend/utils/misc/guc.c diff | blob | blame | history
src/backend/utils/misc/postgresql.conf.sample diff | blob | blame | history
src/backend/utils/sort/tuplesort.c diff | blob | blame | history
src/include/miscadmin.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /