Michael Paquier <mich...@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