model-writtenrun 3557 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed condition-variable wait/wakeup support backed by dynamically allocated shared memory, together with a recovery test that pauses a restart point across promotion and checks recovery after a crash #1.
- The first revision fixed Windows failures by properly consuming output and finishing the test's IPC::Run process after killing its backend #2.
- Bertrand Drouvot questioned whether the counter and spinlock were necessary, but accepted retaining explicit shared state and the predicate loop as a sound condition-variable pattern that could accommodate future extensions #4 #6 #8.
- Andrey Borodin supplied a multistep synchronization use case requiring independent wakeups, and Bertrand also requested filtering by name; Michael consequently added named counter slots, a name-taking wakeup function, and injection-point names in pg_stat_activity #7 #8 #9 #11.
- Andrey also raised critical-section support, prompting discussion of preloading callbacks to avoid allocations, but no such change was included in this series #7 #10.
- Bertrand's subsequent reviews led to unsigned counters, clearer comments, and simpler log checks, while Michael declined an unrelated second injection point and avoided complicating the generic callback to accommodate isolation testing #13 #14 #15 #16.
- Andrey repeatedly requested a reusable Perl polling helper; after discussing readability and keeping log checks separate, Bertrand and Michael agreed to a helper that monitors pg_stat_activity #18 #21 #22 #23 #24.
- Bertrand supplied the helper as a patch on top of the main series, then removed a stray print and made backend filtering optional at Andrey's request; Andrey reported that the revised helper worked #29 #30 #31 #32.
- Michael requested useful context in timeout errors, and Bertrand's final helper submission added the injection-point name and backend description to those diagnostics #33 #34.
- Michael committed the wait/wakeup portion of #16 as 37b369dc67, retaining the reviewed implementation while reducing the maximum simultaneous waits from 32 to 8.
- Michael committed the recovery-test portion of #16 as 6782709df8, crediting Kyotaro Horiguchi's original test and standardizing the injection-point name to create-restart-point #35.
- Michael committed Bertrand's helper from #34 as eca2c1ea85, renaming it wait_for_event(), requiring a backend type, changing argument order, and simplifying its internals because it applies to wait events beyond injection points #36.
- After the commits, Jelte Fennema-Nio requested easier installation for Citus testing through contrib, while Michael stressed the maintenance flexibility of a test module and the ability to supply custom callback libraries #37 #39 #43 #44.
- Jelte resolved the Meson installation issue by enabling injection points, but distribution through ordinary packages remained a concern; all submitted functionality had landed, and Michael ended the thread by deferring any move to contrib until there was more experience and demand #45 #46.