Re: Logging which local address was connected to in log_line_prefix - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Logging which local address was connected to in log_line_prefix
Date
Msg-id 3105945.1743979994@sss.pgh.pa.us
Whole thread Raw
In response to Re: Logging which local address was connected to in log_line_prefix  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> I'd suggest the addition of this data to csvlog.c and jsonlog.c,
> perhaps only adding this information if local_host[0] is not '\0'
> rather than assigning a default "[none]" all the time to save some
> space in the entries generated.

I think that's completely impractical for csvlog: changing the row
type for CSV output is a serious compatibility break, and there is
exactly zero evidence that the local address info is worth that.

JSON has less of a compatibility problem, but I still doubt that
the local address info is worth the space it'd take, for about
99% of users.  Also note that we have no good way for the user
to specify what fields she wants in jsonlog, otherwise we could
make it appear only if asked for.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: History doc page clarification on naming
Next
From: David Rowley
Date:
Subject: Re: [PoC] Reducing planning time when tables have many partitions