Re: Logging which local address was connected to in log_line_prefix

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Greg Sabino Mullane <htamfids@gmail.com>, Jim Jones <jim.jones@uni-muenster.de>, david@pgmasters.net, Peter Eisentraut <peter@eisentraut.org>, Cary Huang <cary.huang@highgo.ca>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2025-04-07T15:59:48Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add local-address escape "%L" to log_line_prefix.

Robert Haas <robertmhaas@gmail.com> writes:
> The only thing that makes me a little bit sad is that we don't seem to
> have added this to pg_stat_activity.

Hmm, that seems like it'd be a completely separate discussion.

My main objection to the idea is that if we do that then everybody
will pay the overhead for it, whether they use it or not.

			regards, tom lane