postgresql/src/backend/utils/sort
Alexander Korotkov 097366c45f Move memory management away from writetup() and tuplesort_put*()
This commit puts some generic work away from sort-variant-specific function.
In particular, tuplesort_put*() now doesn't need to decrease available memory
and switch to sort context before calling puttuple_common().  writetup()
doesn't need to free SortTuple.tuple and increase available memory.

Discussion: https://postgr.es/m/CAPpHfdvjix0Ahx-H3Jp1M2R%2B_74P-zKnGGygx4OWr%3DbUQ8BNdw%40mail.gmail.com
Author: Alexander Korotkov
Reviewed-by: Pavel Borisov, Maxim Orlov, Matthias van de Meent
Reviewed-by: Andres Freund, John Naylor
2022-07-27 08:27:58 +03:00
..
logtape.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Invent qsort_interruptible(). 2022-07-12 16:30:36 -04:00
qsort_interruptible.c Invent qsort_interruptible(). 2022-07-12 16:30:36 -04:00
sharedtuplestore.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
sortsupport.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tuplesort.c Move memory management away from writetup() and tuplesort_put*() 2022-07-27 08:27:58 +03:00
tuplestore.c Update copyright for 2022 2022-01-07 19:04:57 -05:00