model-writtenrun 3515 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Dec 2022 - Jan 2023 · 5 entries
- Andrey Borodin proposed transaction_timeout at Nikolay Samokhvalov's request to bound entire transactions, including sequences of short statements that existing timeouts cannot constrain #1 #2.
- Nikolay's initial testing exposed failure to time out multi-statement transactions; Borodin added an active-timer guard and regression coverage, and Nikolay confirmed the revised behavior #2 #3 #4.
- Andres Freund questioned per-statement overhead, duplicated signal handling, and insufficient timeout-interaction tests; Kyotaro Horiguchi explored broader timer optimizations, while Borodin first repaired the missing sample configuration entry #6 #8 #9 #10 #11 #13.
- Borodin added documentation, consolidated signal handling, and reported simultaneous timeout causes, but Nathan Bossart and Peter Eisentraut objected to composing translatable messages from fragments; the existing policy of disabling timeouts during backups remained #14 #15 #16 #20.
- Nikolay tested longer transactions and requested stronger multi-statement coverage, ultimately concluding that his apparent timing discrepancy was explained by where the last successful query began #17 #18 #19.
Sep 2023 - Mar 2024 · 19 entries
- Fujii Masao found that COMMIT AND CHAIN did not reset the timer and idle transactions were not interrupted promptly, while bt23nguyent demonstrated inconsistent behavior when changing transaction_timeout during a transaction #21 #23.
- Nikolay reinforced the need to release resources promptly, and Yuhang Qiu explained why query cancellation during secure_read was unsuitable, recommending session termination and raising the prepared-transaction exception #24 #25.
- After the long gap, Borodin first attempted to fix chained transactions by rescheduling in start_xact_command(), then replaced cancellation with latch-driven FATAL termination for both active and idle sessions #26 #27.
- Yuhang tested the termination design and corrected documentation and the PostgreSQL version guard; the discussion retained the name transaction_timeout while documenting that prepared transactions are excluded #29 #30 #31.
- Japin Li's reviews led to disabling the timeout in autovacuum workers and suppressing longer competing timeouts; subsequent revisions corrected precedence conditions, handled a zero transaction timeout, and documented the behavior #32 #33 #35 #36 #37 #39.
- Windows failures exposed unreliable connection-error expectations and short timing margins, leading to observer-session checks, longer waits, and Japin's refactoring into separate timeout permutations #40 #41 #42 #43 #49.
- Japin also found that enabling the timeout within a transaction did not take effect until another command; Junwang Zhao supplied a second patch, and Japin revised it after discovering that its initial form broke COMMIT AND CHAIN #49 #54 #56 #58.
- Borodin temporarily restored the older tests with longer waits to understand Windows failures, keeping the new activation behavior as a separate patch; Junwang then found that repeated commands could continually refresh the timer #61 #64.
- Borodin added tests for chained transactions and repeated short queries, and Junwang supplied the key fix of scheduling in StartTransaction() rather than start_xact_command() #65 #66.
- Further revisions expanded active and idle coverage, separated chained-transaction and repeated-query permutations, and increased timing margins, but Borodin remained concerned that reliable sleep-based tests would be slow #68 #69 #72 #73.
- Borodin squashed the series, separated the most timing-sensitive cases into timeouts-long, and corrected an accidentally omitted observer-session fix; Japin's final documentation review clarified equal-timeout precedence and the prepared-transaction exclusion #75 #76 #77 #78.
- Alexander Korotkov measured no detectable disabled-timeout overhead, added an assign hook to avoid an unconditional timeout-state lookup, and cleaned up documentation before the feature landed unchanged from his posted revision #81 51efe38cb9.
- After landing, Andres identified that timers started in xact.c were not reliably stopped by transaction completion, particularly outside normal client command processing, and warned that timeouts-long could fail on slow machines #82.
- Korotkov implemented that review directly, moving timer cleanup into commit, abort, and prepare paths, handling activation and disabling in the GUC assign hook, and removing the timeouts-long specification and schedule entry bf82f43790.
- Buildfarm failures then demonstrated that the remaining sleep-based termination checks were also unreliable; Borodin proposed removing them and replacing them with waiting injection-point tests, which Japin endorsed #83 #84 #85.
- Borodin posted a four-patch series containing test removal, Michael Paquier's external injection-point prerequisites, and prototype TAP tests for transaction, idle-transaction, and idle-session timeouts; statement_timeout retained its existing isolation coverage #86.
- Korotkov committed only the removal component, with a small correction to the remaining test description, and deferred the TAP replacement until its prerequisites landed a661bf7b0f #87.
- Once the prerequisites were committed, Borodin submitted the remaining TAP tests with a repeated-query transaction case; Korotkov requested verification of the actual timeout messages, leading to log checks and then wait_for_log() calls #88 #89 #90 #91 #92.
- Korotkov revised the TAP tests, Borodin noticed that recorded log offsets were unused, and the last message supplied the corrected final version; that version subsequently landed unchanged, completing the replacement tests while leaving the timeout feature in place #93 #94 #95 eeefd4280f.