Logging which interface was connected to in log_line_prefix - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Logging which interface was connected to in log_line_prefix
Date
Msg-id CAKAnmmK-U+UicE-qbNU23K--Q5XTLdM6bj+gbkZBZkjyjrd3Ow@mail.gmail.com
Whole thread Raw
Responses Re: Logging which interface was connected to in log_line_prefix
Re: Logging which interface was connected to in log_line_prefix
List pgsql-hackers
Someone on -general was asking about this, as they are listening on multiple IPs and would like to know which exact one clients were hitting. I took a quick look and we already have that information, so I grabbed some stuff from inet_server_addr and added it as part of a "%L" (for 'local interface'). Quick patch / POC attached.

Cheers,
Greg

Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: remaining sql/json patches
Next
From: Laurenz Albe
Date:
Subject: Re: Reducing the log spam