pgsql: Move memory management away from writetup() and tuplesort_put*()

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Move memory management away from writetup() and tuplesort_put*()
Дата
Msg-id E1oGZbk-001RK1-Gg@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Move memory management away from writetup() and tuplesort_put*()  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/097366c45f5dfe142eb232dc6d348ca0705a63a9

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 78 ++++++++++++++++----------------------
1 file changed, 33 insertions(+), 45 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Remove the restriction that the relmap must be 512 bytes.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Allow "in place" tablespaces.