Re: Emit namespace in post-copy output

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Emit namespace in post-copy output
Дата
Msg-id YQH8+rqjOkoaY3Ia@paquier.xyz
обсуждение исходный текст
Ответ на Re: Emit namespace in post-copy output  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On Wed, Jul 28, 2021 at 04:15:19PM +0200, Daniel Gustafsson wrote:
> Since get_namespace_name() returns a palloced string, this will lead to a 2x
> leak of the namespace length as opposed to the 1x of today.  While hardly a big
> deal, it seems prudent to cap this by storing the returned string locally now
> that we need it twice.

I don't think this matters much.  A quick read of the code shows that
this memory should be allocated within the transaction context running
CLUSTER/VACUUM FULL, and that gets free'd in the internal calls of
CommitTransactionCommand().
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Use WaitLatch for {pre, post}_auth_delay instead of pg_usleep
Следующее
От: Ranier Vilela
Дата:
Сообщение: Re: Out-of-memory error reports in libpq