model-writtenrun 4739 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jacob Champion reported that failed GSS negotiation left a connection handle able to reenter GSS processing, unlike TLS, and posted Michael Paquier's patch to align the behavior in #1.
- Jelte Fennema-Nio approved the patch and questioned potentially redundant TLS guards in #2; Jacob argued against introducing analogous speculative GSS checks and deferred broader state-machine cleanup in #3.
- Michael confirmed that failed gssencmode=require negotiation incorrectly omitted CONNECTION_BAD and suggested reducing connection flags and splitting state handling into functions in #4; Jacob supported exploring both approaches in #5, but neither became part of this fix.
- Michael proposed initially changing only the development branch in #6; Stephen Frost found no issues with the patch and advocated backpatching in #7, prompting Michael to acknowledge that his caution reflected general concern about libpq behavior changes rather than a specific risk in #8.
- Michael committed the patch from #1 with only comment wrapping differences as e0a09d4e35 and confirmed backpatching through PostgreSQL 12 in #9, completing the submitted fix.