diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-09-29 10:20:44 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-09-29 10:25:44 -0400 |
commit | 8b304b8b72b0a60f1968d39f01cf817c8df863ec (patch) | |
tree | ae476a3b7697ba10e7f9cb8e4dcb552f7632a84a /src/backend/utils/misc/guc.c | |
parent | d2773f9bcd980cf6ed720928cd0700196608ef19 (diff) | |
download | postgresql-8b304b8b72b0a60f1968d39f01cf817c8df863ec.tar.gz postgresql-8b304b8b72b0a60f1968d39f01cf817c8df863ec.zip |
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
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 47a5f257071..8292df00bbf 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -1933,16 +1933,6 @@ static struct config_int ConfigureNamesInt[] = NULL, NULL, NULL }, - { - {"replacement_sort_tuples", PGC_USERSET, RESOURCES_MEM, - gettext_noop("Sets the maximum number of tuples to be sorted using replacement selection."), - gettext_noop("When more tuples than this are present, quicksort will be used.") - }, - &replacement_sort_tuples, - 150000, 0, INT_MAX, - NULL, NULL, NULL - }, - /* * We use the hopefully-safely-small value of 100kB as the compiled-in * default for max_stack_depth. InitializeGUCOptions will increase it if |