Re: tuplesort Generation memory contexts don't play nicely with index builds

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: tuplesort Generation memory contexts don't play nicely with index builds
Дата
Msg-id CAApHDvq2iQ0WygUCacYfSWWsbXBUFwrjtqf1EV=VpnFQP1b7wA@mail.gmail.com
обсуждение исходный текст
Ответ на tuplesort Generation memory contexts don't play nicely with index builds  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
On Wed, 29 Jun 2022 at 12:59, David Rowley <dgrowleyml@gmail.com> wrote:
> I noticed while doing some memory context related work that since we
> now use generation.c memory contexts for tuplesorts (40af10b57) that
> tuplesort_putindextuplevalues() causes memory "leaks" in the
> generation context due to index_form_tuple() being called while we're
> switched into the state->tuplecontext.

I've attached a draft patch which changes things so that we don't use
generation contexts for sorts being done for index builds.

David

Вложения

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

Предыдущее
От: Nikolay Shaplov
Дата:
Сообщение: Re: [PATCH] minor reloption regression tests improvement
Следующее
От: Fujii Masao
Дата:
Сообщение: Add index item for MERGE.