model-writtenrun 9556 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Oct 2018 - Apr 2019 ยท 18 entries
- Ryohei Nagaura proposed backend and libpq tcp_user_timeout settings for unacknowledged TCP traffic, together with a libpq socket_timeout that closes connections after waiting too long for socket readiness #1.
- Andrei Yahorau supported exposing TCP_USER_TIMEOUT but questioned socket_timeout's compatibility with pqWait(), while Fabien Coelho tested the socket timeout and challenged its use case, abrupt disconnection, duplicated waiting logic and permissive integer parsing #2 #5.
- Nagaura temporarily focused submissions on TCP timeout, adding documentation, stricter parsing and manual iptables test instructions; he subsequently bundled documentation with each feature as Fabien requested #6 #10 #12.
- Takayuki Tsunakawa distinguished network timeouts from a last-resort client timeout for an unresponsive server, and Andrei explained how keepalives and TCP user timeout complement each other; Nagaura incorporated Andrei's documentation #14 #15 #16.
- Kirk Jamison reviewed and tested the TCP work and advocated committing it independently, while discussion clarified that libpq can also run inside servers and that socket_timeout should describe individual socket operations rather than a TCP-only or whole-query timeout #19 #22 #25 #29.
- Nagaura restored socket_timeout to the submitted series, then addressed Kirk's parsing, formatting and minimum-duration comments; the TCP patches also replaced the hard-coded socket option number with TCP_USER_TIMEOUT #32 #35 #37 #38.
- Fabien's renewed testing found that socket timeout left server queries running and silently ignored malformed values, while his TCP review identified contradictory platform documentation; Kirk supplied successful client and server timeout tests using dropped packets #39 #40 #41 #42.
- The socket-timeout debate centered on cancellation versus immediate disconnection: Fabien favored attempting cancellation, whereas Nagaura and Tsunakawa prioritized returning control to the client, and Robert Haas highlighted that cancellation itself could block #44 #45 #54 #77.
- Robert explained that periodic protocol messages could prevent socket_timeout from enforcing a query deadline, and Kyotaro Horiguchi and Mikalai Keida raised concerns about unclear semantics and adverse effects; Tsunakawa defended it as a last resort for server stalls that other timeouts could not interrupt #57 #62 #64 #70.
- Robert recommended leaving socket_timeout out for lack of a compelling agreed design, and Nagaura agreed to prioritize TCP_USER_TIMEOUT for PostgreSQL 12 while continuing the other discussion later #82 #83 #84.
- The next revisions corrected platform documentation and an SGML error, incorporated Kirk's testing feedback, fixed the backend's erroneous shift operator in its setsockopt() error check, and added the setting to postgresql.conf.sample #85 #87 #88 #89 #90.
- Kyotaro's detailed review prompted a getsockopt-based getter for SHOW, removal of ENOPROTOOPT suppression, consolidation with libpq keepalive setup and deletion of an unused field; Nagaura incorporated those changes #91 #94.
- Unsupported-platform handling went through a compilation fix and removal of an inappropriate libpq error message, after which Tsunakawa identified the incorrect default and missing setter bookkeeping needed for accurate SHOW results #97 #99 #100 #101.
- Nagaura changed the default to zero and completed the setter, then corrected a copied keepalive assignment; parallel socket_timeout revisions simplified error handling and refined documentation without resolving the design disagreement #104 #105 #106 #107.
- Kyotaro confirmed Windows compilation and suggested final wording and configuration-layout adjustments, and Kirk audited the resulting TCP code and repeated functional tests before marking it ready for a committer #108 #109 #110.
- Fabien requested a consistent libpq option label and reiterated unresolved socket_timeout concerns; Nagaura adjusted the label, rebased the series, and made socket_timeout depend on the TCP libpq patch, which Kirk then verified #111 #112 #114 #115.
- Michael Paquier committed the TCP portions of #114 as 249d649996, adding postgres_fdw option-test coverage and presentation cleanup while also moving libpq timeout setup into the keepalive else-if chain #118.
- Michael discarded socket_timeout because its approach lacked consensus and requested a separate thread and CommitFest entry for any resubmission; Tsunakawa and Nagaura acknowledged that outcome, leaving TCP user timeout committed and socket timeout uncommitted at the thread's close #118 #119 #120.