model-writtenrun 3665 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed named injection points for deterministic fault and concurrency testing, with a shared callback registry, optional build switches and an extension-based SQL interface rather than built-in testing actions #1.
- Nazir Bilal Yavuz found that Meson enabled the feature by default and that disabled builds produced warnings; Michael fixed these issues and skipped unsupported tests, while declining callback-update APIs and warnings for unattached points #4 #5.
- Nathan Bossart supported a minimal initial interface, while Andres Freund requested realistic tests demonstrating synchronization between processes #6 #7.
- Michael replaced shared function pointers with library/function names and supplied snapshot-consistency and promotion/restartpoint examples, reporting that injection points reduced the latter test from tens of seconds to roughly one or two seconds #9.
- Álvaro Herrera proposed INJECTION_POINT and attach/detach terminology and raised process-specific activation; Michael adopted the naming, added a local callback cache and kept conditional behavior in extension callbacks #10 #11 #13.
- Ashutosh Bapat recommended a hash table for the local cache and discussed counters, waits and callback metadata; Michael switched the cache to an HTAB while retaining a small shared registry and leaving richer conditions to extensions #14 #15 #17.
- Dilip Kumar demonstrated practical use for CLOG group-update concurrency testing, and Michael rebased the series in December after shared-memory initialization changes #22 #24 #25.
- January reviews identified documentation problems, stale-cache behavior, duplicated file-existence checks, missing HASH_FIXED_SIZE and unsafe assumptions about condition-variable wakeups #26 #27 #30 #37.
- Ashutosh and Nathan questioned the test module's name and placement; the discussion settled on injection_points under src/test/modules, keeping SQL functions and callbacks outside core and avoiding contrib maintenance obligations #29 #32 #33 #35 #36 #38.
- Michael incorporated the review fixes, added a separate file-existence refactoring prerequisite and moved the example tests into src/test/recovery, while retaining best-effort cache invalidation and deferring callback validation at attachment time #42.
- The next revision removed an unsupported nanosleep import after Windows CI failures, and Michael limited the immediate landing to the prerequisite, backend facility and basic module because the recovery examples still needed work #44.
- The file-existence prerequisite from #44 landed with a small comment expansion as e72a37528d, and Michael resent the remaining four patches #48.
- Ashutosh reviewed the remaining backend and module, supplied documentation and comment fixups in a complete resubmission, and noticed that the backend still used its private file_exists helper #49.
- Michael landed the backend portion and documentation fixes from #49 as d86d20f0ba, additionally replacing the private helper with pg_file_exists and polishing the text #50.
- The basic module and its comment fixes from #49 landed separately as 49cd2b93d7, with Makefile simplification and corrected expected output for the action terminology #50.
- The snapshot and promotion/restartpoint examples remained outside these commits: Michael had already declined to pursue the snapshot example and deferred the recovery-test improvements, including the wait/wake design, to further work #17 #44 #50.
- Heikki Linnakangas attached a patch enabling injection points in Cirrus CI while developing a GIN test, and the ASan build exposed a crash in the newly committed infrastructure #52.
- Heikki fixed overreading string copies in InjectionPointAttach and missing termination in injection_point_cache_add using strlcpy, landing 0eb23285a2 without posting an attached fix patch #53.
- Michael then applied Heikki's CI patch from #52 with command-formatting edits as 183b6f73b0, enabling coverage in assertion-enabled CI builds #54.
- Michael posted a separate prototype allowing injection-point callbacks to receive runtime arguments through INJECTION_POINT_1ARG, but this extension did not land among the thread's candidate commits #55.
- After a year-long gap, Jeff Davis identified possible HashAgg uses and suggested one universal void-pointer argument instead of separate callback arities; Michael agreed while requiring concrete in-tree use cases #56 #57.
- By April 2025, Michael identified AIO testing workarounds as that concrete use case and moved the runtime-argument rework to a new thread, leaving this thread with the base facility, module, string-copy fixes and CI support landed, and the argument extension continuing elsewhere #58 #59.