model-writtenrun 2360 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Greg Sabino Mullane proposed %L for log_line_prefix so operators listening on multiple IP addresses could identify the server address each client reached, attaching a proof of concept in #1.
- Cary Huang tested IPv4 and IPv6 successfully but questioned the interface terminology and IPv6-cleanup comment in #2; Greg rebased the patch and explained why IPv6 zone information should remain intact in #3.
- Peter Eisentraut requested local-address terminology and [local] for Unix sockets in #4, and explained why the IPv6-cleanup comment was inapplicable in #5; Greg incorporated those changes in #6.
- David Steele verified peer and host connections and requested formatting fixes in #7; Greg supplied them in #8, which David endorsed in #9.
- Jim Jones questioned why background-process logs showed [local] in #10; Greg explained that those processes lack the triggering client's connection information in #11, and Jim subsequently reported successful testing between separate computers in #12.
- Tom Lane identified repeated address-conversion overhead, missing padding support, and ambiguous background-process output in #13, then recommended delegating Unix-socket handling to pg_getnameinfo_all in #14; Greg addressed everything except caching in #15, introducing [none] for processes without a client connection.
- Tom added lazy address caching inside Port in #16, avoiding conversion until %L is used, but noted that [none] conflicts with documentation saying session-only escapes produce empty strings in background processes.
- Michael Paquier proposed extending CSV and JSON logs in #17; Tom declined in #18 because changing CSV columns would break compatibility and the extra JSON field would consume space for a feature few users need.
- Greg favored retaining [none] despite the documentation inconsistency in #19, and Tom committed #16 unchanged apart from rebasing as 3516ea768c, confirming the landing in #20.
- After the feature landed, Robert Haas suggested exposing the address through pg_stat_activity in #21; Tom raised universal overhead concerns in #22, and Robert agreed in #23 that this was future work rather than something to add before the freeze.