model-writtenrun 9362 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fabien COELHO opens the thread with #1, following the host/hostaddr discussion in thread #39233, and proposes PQhostaddr() so psql can display its actual connection address and reuse it when reconnecting.
- Pavel Stehule reports successful testing and supplies a shared printConnInfo() implementation in #2, while Arthur Zakirov reviews both variants and requests braces and reconsideration of where address conversion occurs in #3.
- Robert Haas questions whether misleading host information constitutes a bug but accepts richer output in #5; Fabien explains in #7 that hostaddr can even make psql incorrectly report a Unix socket and that displaying the resolved address also helps with multi-address hostnames.
- Alvaro Herrera tests the patch and requests an explicit buffer length for getHostaddr() in #12; after discussion of the differing connection messages, Fabien leaves output refactoring out in #19 and posts the buffer-length and brace fixes in #20.
- Alvaro supplies #21, fixing the connip memory leak and replacing the unknown-address sentinel with an empty string, then lands its exact file contents as 6e5f8d489a and announces the push in #22.
- Months later, Noah Misch identifies a reconnect regression in #25: retaining a resolved address prevents fresh DNS resolution and alternative-address attempts; he also requests reconnect documentation, a corrected socket comment, and normalized address output.
- Dmitry Dolgov investigates and proposes documentation and normalization changes in #28, while Noah clarifies in #29 that reconnects should resolve hostnames afresh unless hostaddr was explicitly supplied.
- Fabien posts the incomplete corrective patch #32, normalizing address output but disabling address reuse altogether because he has not found how to detect an explicit hostaddr setting.
- Noah points to PQconninfo() in #33, and Fabien uses it in #34 to preserve explicit hostaddr settings while restoring hostname resolution for other reconnects.
- Alvaro adds reconnect documentation in #35 and commits #34 with light cleanup as 313f56ce2d, then reports manual testing of changed hostname mappings in #36.
- Alvaro and Noah confirm that the outstanding issues are resolved in #38 and #39, and Michael Paquier closes the open item in #40; both changes have landed, with no patch remaining under review.