postgresql/src/backend/utils/sort
Jeff Davis 24d85952a5 Introduce LogicalTapeSetExtend().
Increases the number of tapes in a logical tape set. This will be
important for disk-based hash aggregation, because the maximum number
of tapes is not known ahead of time.

While discussing this change, it was observed to regress the
performance of Sort for at least one test case. The performance
regression was because some versions of GCC switch to an inlined
version of memcpy() in LogicalTapeWrite() after this change. No
performance regression for clang was observed.

Because the regression is due to an arbitrary decision by the
compiler, I decided it shouldn't hold up this change. If it needs to
be fixed, we can find a workaround.

Author: Adam Lee, Jeff Davis
Discussion: https://postgr.es/m/e54bfec11c59689890f277722aaaabd05f78e22c.camel%40j-davis.com
2020-03-09 10:40:02 -07:00
..
.gitignore Speed up in-memory tuplesorting. 2012-02-15 12:13:32 -05:00
gen_qsort_tuple.pl Don't fall off the end of perl functions 2018-05-27 09:08:42 -04:00
logtape.c Introduce LogicalTapeSetExtend(). 2020-03-09 10:40:02 -07:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
sharedtuplestore.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
sortsupport.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tuplesort.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tuplestore.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00