model-writtenrun 9173 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Billen reported that reconnecting a psql session from PostgreSQL 11 to PostgreSQL 10 left stale server-version state, causing \df to query a nonexistent column; he relayed the diagnosis that CheckConnection() omitted SyncVariables() #1.
- Tom Lane noted the asymmetry between clearing connection variables on failure and failing to refresh them on success, and considered whether reconnection should also display connection warnings, including encryption information #2.
- Tom Lane posted a patch that calls SyncVariables() followed by connection_warnings(false) after successful reconnection and suppresses repeated Windows codepage warnings, accepting the existing SSL/GSS banner behavior #3.
- At the thread's final message, Tom Lane still questioned whether stable branches should receive only the variable refresh or the complete patch, while observing that connection warnings do not affect noninteractive applications #3.
- Tom Lane subsequently committed the patch with additional cleanup of connection state after failed noninteractive connection attempts and comments linking the two connection-handling paths; the change landed with backports to all supported branches aef3623858.