[PATCH] Include application_name in "connection authorized" log message

Поиск
Список
Период
Сортировка
От Don Seiler
Тема [PATCH] Include application_name in "connection authorized" log message
Дата
Msg-id CAHJZqBB_Pxv8HRfoh+AB4KxSQQuPVvtYCzMg7woNR3r7dfmopw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Include application_name in "connection authorized" logmessage  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Good afternoon, all.

In trying to troubleshoot the source of a recent connection storm, I was frustrated to find that the app name was not included in the connection messages. It is there in the log_line_prefix on the disconnection messages but I would prefer it be directly visible with the connection itself. With some guidance from Stephen Frost I've put together this patch which does that.

It adds a new application_name field to the Port struct, stores the application name there when processing the startup packet, and then reads from there when logging the "connection authorized" message.

Thanks,
Don.

--
Don Seiler
www.seiler.us
Вложения

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

Предыдущее
От: Ashwin Agrawal
Дата:
Сообщение: Re: Avoiding Tablespace path collision for primary and standby
Следующее
От: Tomas Vondra
Дата:
Сообщение: memory leak when serializing TRUNCATE in reorderbuffer