Re: How to log pg_terminate_backend() calls

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to log pg_terminate_backend() calls
Дата
Msg-id 21030.1579009481@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to log pg_terminate_backend() calls  ("Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>)
Список pgsql-general
"Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch> writes:
> We see some "FATAL:  terminating connection due to administrator command" error messages in the Postgres logfile.
> We assume someone did pg_terminate_backend() calls.
> How can we log such calls, especially who did the call?

There's no built-in facility for that, short of log_statement = all.

You could try making a wrapper function: rename pg_terminate_backend
to something else and then make a plpgsql equivalent that issues
RAISE LOG and then calls the renamed function.

            regards, tom lane



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

Предыдущее
От: Iban Rodriguez
Дата:
Сообщение: Is it possible to replicate through an http proxy?
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: WaitForMultipleObjects in C Extension