model-writtenrun 8041 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed modernizing connection-parameter validation, rejecting extra positional arguments after a connection string, and making password reuse consistent between connection syntaxes in #1.
- Chapman Flack described his existing workaround in #2, and Kyotaro Horiguchi raised the separate desire to reuse connection parameters after an involuntary disconnect in #3.
- Tom initially rejected preserving a separate PQconninfo snapshot because reconnect attempts need mutable copies, and explained why the new password-prompt fallback handles unusual authentication configurations in #4; Kyotaro agreed in #5.
- Tom committed the original patch unchanged as 94929f1cf6, limiting the behavior changes to the development branch rather than backpatching them.
- After that landing, Tom found a simpler reconnection mechanism: retain the old PGconn separately as pset.dead_conn and extract its parameters when needed, posting the incremental patch and a reconnection demonstration in #6; Kyotaro expressed agreement in #7.
- Tom then recognized that retaining parameters after a failed scripted connection could redirect later commands to the wrong server, so 1b62d0fb3e modified #6 to discard them after such failures while preserving them after connection loss, with documentation explaining the distinction.
- Tom announced the adjusted landing and explained the wrong-server scenario in #8; Kyotaro accepted the correction in #9, leaving both changes committed and no outstanding patch.