mirror of
https://github.com/postgres/postgres.git
synced 2025-09-06 13:46:51 +03:00
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.
This commit is contained in:
@@ -109,6 +109,7 @@ bool enableFsync = true;
|
||||
bool allowSystemTableMods = false;
|
||||
int work_mem = 1024;
|
||||
int maintenance_work_mem = 16384;
|
||||
int replacement_sort_tuples = 150000;
|
||||
|
||||
/*
|
||||
* Primary determinants of sizes of shared-memory structures.
|
||||
|
Reference in New Issue
Block a user