model-writtenrun 3830 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Lars Kanis reported timing-dependent failures during nonblocking GSSAPI COPY transmission, traced them to 8K write-size rounding, and proposed two possible workarounds in #1; Tom Lane initially questioned both and requested a reproducer in #2.
- Tom Lane reproduced the failure with temporary psql and Kerberos-test changes in #3 and supplied a caller-side workaround, but preferred changing pg_GSS_write because callers should not need to accommodate its partial-write accounting; the reproduction hack was explicitly not intended for commit.
- Lars Kanis supplied a standalone C reproducer in #4 that reliably failed over an Internet VPN connection, although he could not reproduce the failure with it on a LAN.
- Tom Lane replaced the workaround with #5, making pg_GSS_write report success only after transmitting all supplied data and propagate lower-level failures directly; synchronizing the backend remained outstanding.
- On November 23, Tom Lane committed #5 with matching backend changes as d053a879bb and backpatched the fix, including 5abdfd88fa for PostgreSQL 13; neither the temporary reproduction hack nor the original caller-side workaround landed.
- Stephen Frost endorsed the final approach and backend changes in #6, closing the thread with the fix landed and no remaining work identified; his November 26 review occurred after the commits and therefore does not qualify for suggested review credit.