mirror of
https://github.com/postgres/postgres.git
synced 2025-09-06 13:46:51 +03:00
Remove replacement selection sort.
At the time replacement_sort_tuples was introduced, there were still cases where replacement selection sort noticeably outperformed using quicksort even for the first run. However, those cases seem to have evaporated as a result of further improvements made since that time (and perhaps also advances in CPU technology). So remove replacement selection and the controlling GUC entirely. This makes tuplesort.c noticeably simpler and probably paves the way for further optimizations someone might want to do later. Peter Geoghegan, with review and testing by Tomas Vondra and me. Discussion: https://postgr.es/m/CAH2-WzmmNjG_K0R9nqYwMq3zjyJJK+hCbiZYNGhAy-Zyjs64GQ@mail.gmail.com
This commit is contained in:
@@ -112,7 +112,6 @@ 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