model-writtenrun 9652 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Magnus Hagander proposed suppressing incomplete-startup-packet messages for connections closed without sending any bytes, because monitoring and health checks generated excessive log noise #1.
- After Peter Geoghegan noted port scanning as another source, Tom Lane and Magnus Hagander favored DEBUG1 logging for empty connections without introducing a configuration parameter #4 #6 #7.
- Tatsuo Ishii questioned whether suppressing these messages would impair attack detection; Robert Haas argued that operating-system and firewall monitoring were better suited to that purpose, and Tatsuo accepted the explanation #8 #9 #10.
- Nearly three years later, Christoph Berg revived the discussion with a patch demoting three startup-packet diagnostics to DEBUG1, and Andrew Dunstan proposed committing it #11 #12.
- Tom Lane objected that the patch also suppressed diagnostics for nonempty packets and that replacing COMMERROR might attempt to send an error to a lost client connection #15.
- Tom Lane supplied a replacement that reads the first length byte separately, silently handles empty connections, and retains errors for partial or invalid packets; it also eliminates the SSLdone-specific exception #16.
- Andrew Dunstan proposed backpatching the replacement, but Robert Haas opposed treating a behavior change as a bug fix, and Andrew agreed to keep it out of stable branches #19 #20 #21.
- Andrew Dunstan committed Tom Lane's replacement from #16 unchanged as 342cb650e0, with no backports.
- Months later, Jobin Augustine reported an invalid-startup-packet-length message when connecting with telnet; Tom Lane explained that malformed requests containing data should still be logged, and Stephen Frost agreed, leaving the committed behavior intact with no further patch proposed #22 #23 #24.