model-writtenrun 2986 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Oct 2021 - Mar 2022 · 7 entries
- Hayato Kuroda proposed periodic foreign-server health checks in #1 to stop long transactions from wasting local work after a remote connection had failed, initially using core timeout infrastructure and FDW callbacks.
- Shinya Kato tested the prototype and requested error-reporting and GUC corrections in #4, while Zhihong Yu suggested clearer interrupt conditions in #7; Hayato incorporated those changes and added documentation through #9.
- Kato's concern about unnecessary checking during local-only transactions in #11 led to transaction-end callback removal in #12, which Fujii then steered toward explicit FDW timer control in #15 and #18.
- Fujii identified multi-FDW counter and error-handling problems in #19, then recommended simpler transaction-end timer shutdown and SIGINT cancellation in #21, producing the revised lifecycle in #22.
- After the required socket-event support landed, Hayato rebased and attached the postgres_fdw implementation directly in #23, including a guard for platforms unable to detect closed sockets.
- Kyotaro Horiguchi argued in #24 and #28 that the dedicated core timeout machinery was excessive; Hayato consequently moved scheduling into postgres_fdw using USER_TIMEOUT in #32.
- Fujii's testing in #36 exposed idle-in-transaction cancellation and leaked hash-scan problems, leading to timer cleanup, scan termination, and revised pending-interrupt handling in #37 and #38.
Sep 2022 - Apr 2023 · 12 entries
- After a six-month gap, Fujii pointed out unsafe work inside the signal handler in #39, so #40 restored core callback dispatch while keeping the handler limited to setting flags.
- Onder Kalaci questioned periodic-check overhead and proposed more reusable connection checking in #43 and #48; Hayato explained why a background checker or a fresh connection could miss the state of an existing transaction in #51.
- Takamichi Osumi demonstrated a false successful COMMIT after a remote INSERT was lost in #49; #55 stopped prematurely disconnecting failed cached connections, and Osumi verified the correction in #56.
- Hayato resolved the overhead debate by replacing automatic periodic checks with an explicit SQL verification function and a libpq polling helper in #58, preserving the overnight-batch use case without continuous checking.
- Onder supported the SQL approach and suggested named-server and all-connections variants, warning results, and additional poll flags in #59; these shaped #60, followed by platform-test corrections in #62.
- Tom Lane objected to maintaining duplicate large regression outputs in #66, prompting capability-check functions and conditional tests in #67; Ted Yu then proposed consolidating failure warnings in #68, implemented in #69.
- Katsuragi Yuta's review in #71 led to an extension-version bump and clearer API names and documentation, while Ted's review in #73 refined capability return values through #75.
- Hayato added poll error handling and an experimental kqueue component in #78, then reused existing libpq socket routines in #83 after Horiguchi's review in #81.
- Katsuragi recommended deferring kqueue support in #84, and Peter Smith reviewed naming and argument semantics in #85; #86 dropped the optional platform extension and refined the remaining APIs.
- Further reviews from Katsuragi, Peter, and Vignesh clarified explicit connection-check arguments, unsupported-platform behavior, NULL results, and documentation through #99, which Katsuragi found acceptable in #100.
- Fujii and Tom rejected exposing platform-dependent socket polling as a public libpq API in #103 and #104, so #105 moved checking into postgres_fdw and added user-specific verification and user-name reporting.
- Hayato corrected polling and user-aware warnings in #106, then rebased the unchanged series in #108 after Shubham Khanna reported application failures in #107.
Jul - Sep 2024 · 10 entries
- When review resumed in July 2024, Fujii explained in #109 that checking all session connections did not identify whether the current transaction could commit, and proposed used_in_xact and closed columns in postgres_fdw_get_connections().
- Hayato adopted that interface with old-version compatibility in #110, then incorporated Fujii's feedback on invalidated connections, unsupported-platform NULLs, and portable user-name tests in #112.
- Fujii split the feature into documentation, transaction-use reporting, and connection-status checking in #113, setting user-name reporting aside temporarily; Hayato supplied the agreed final wording and enum adjustments in #117.
- The documentation member of #117 landed unchanged as 284c030a10, replacing prose descriptions of output columns with a table.
- The transaction-use member of #117 landed as c297a47c5f, adding used_in_xact, extension version 1.2, and compatibility handling, with only a leftover enum variable declaration removed.
- The connection-status member of #117 landed unchanged as 857df3cef7, adding optional polling and the closed column so users could identify transactions that should be rolled back.
- A buildfarm failure immediately exposed incomplete poll-result handling; Fujii proposed the exact additional error-event mask inline in #119 and committed it as 454aab4b73, with Hayato confirming the diagnosis afterward in #120.
- Hayato returned to the remaining user-name patch in #121; Fujii rejected exposing an incomplete generic mapping helper in #122 and requested direct syscache lookup in #124, which Hayato implemented in #125.
- Fujii made two final documentation adjustments in #126, and that exact patch landed as 4f08ab5545, adding local user names, public-mapping identification, and NULL handling for dropped mappings.
- Hayato closed the work as committed in #128, reporting healthy buildfarm results and leaving support for additional platforms to a future thread; Fujii agreed in the final message #129.