Re: pgsql: Add function to log the memory contexts of specified backend pro

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgsql: Add function to log the memory contexts of specified backend pro
Дата
Msg-id CA+TgmoZfVES0SaS3NpP1kf__fW1ODc_wzVaNNC9HBHvERvh9xA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Add function to log the memory contexts of specified backend pro  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Ответы Re: pgsql: Add function to log the memory contexts of specified backend pro
Список pgsql-hackers
On Thu, May 1, 2025 at 3:53 AM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
> Just idea, what do you think about adding a flag to indicate whether
> ProcessLogMemoryContextInterrupt() is currently running? Then,
> when a backend receives a signal and ProcessLogMemoryContextInterrupt()
> is invoked, it can simply return immediately if the flag is already set
> like this:

I think that something like this could work, but you would need more
than this. Otherwise, if the function errors out, the flag would
remain permanently set.

--
Robert Haas
EDB: http://www.enterprisedb.com



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