From: | Don Seiler <don(at)seiler(dot)us> |
---|---|
To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | [PATCH] Include application_name in "connection authorized" log message |
Date: | 2018-06-20 19:15:04 |
Message-ID: | CAHJZqBB_Pxv8HRfoh+AB4KxSQQuPVvtYCzMg7woNR3r7dfmopw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
Attachment | Content-Type | Size |
---|---|---|
appname_log.patch | application/octet-stream | 3.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2018-06-20 19:42:17 | memory leak when serializing TRUNCATE in reorderbuffer |
Previous Message | Ashwin Agrawal | 2018-06-20 18:16:14 | Re: Avoiding Tablespace path collision for primary and standby |