Re: freeing bms explicitly

Поиск
Список
Период
Сортировка
От Zhihong Yu
Тема Re: freeing bms explicitly
Дата
Msg-id CALNJ-vQORfQ=vicbKA_RmeGZGzm1y3WsEcZqXWi7qjN43Cz_vg@mail.gmail.com
обсуждение исходный текст
Ответы Re: freeing bms explicitly  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,
I was looking at calls to bms_free() in PG code.

e.g. src/backend/commands/publicationcmds.c line 362

        bms_free(bms);

The above is just an example, there're other calls to bms_free().
Since the bms is allocated from some execution context, I wonder why this call is needed.

When the underlying execution context wraps up, isn't the bms freed ?

Cheers


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: shared-memory based stats collector - v67
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [PATCH] add relation and block-level filtering to pg_waldump