model-writtenrun 7749 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Atsushi Torikoshi proposed recording lock-wait start times in pg_locks because query_start and state_change could not measure actual lock waits, reusing the deadlock timer's timestamp to avoid extra clock calls in #1.
- Justin Pryzby reported a make check-world failure in #2, and Torikoshi updated the amcheck expected output in #3.
- Ian Lawrence Barwick demonstrated that storing the timestamp in LOCK gave multiple processes the latest waiter's timestamp, and supplied a PROCLOCK-based replacement in #4.
- Robert Haas argued that one timestamp per process was sufficient because a process cannot wait for multiple locks simultaneously in #5; Torikoshi adopted PGPROC storage and corrected timestamp clearing and granted-lock output in #8.
- Fujii Masao requested consistent naming and identified missing startup-process timestamps in #9, prompting the waitstart name and standby support in #10.
- Fujii withdrew his concern about repeatedly resetting standby timestamps but questioned partition-lock protection in #12; Torikoshi retained updates outside that lock for performance and documented briefly null timestamps in #13.
- Fujii identified non-atomic 64-bit access and suggested atomic operations in #14 and #15; Torikoshi implemented them in #16, and Fujii corrected their usage and expanded the comments in #17.
- Torikoshi reported no significant pgbench performance difference in #18, and Fujii landed #17 with a catalog-version bump as 3b733fcd04, announcing the push in #19.
- Fujii reverted the first landing after buildfarm failures in #20, then traced the rorqual failure to an uninitialized atomic field in prepared-transaction dummy PGPROCs and supplied a complete corrected patch in #21; he considered prion's separate TOAST failure likely unrelated.
- Torikoshi confirmed successful tests with atomics and spinlocks disabled in #22, and Fujii added another missing initialization for auxiliary processes in #23.
- Fujii landed #23 as 46d6e5f567, with only rebase adjustments including the catalog-version date, and confirmed the second landing in #24.
- Further inspection led Fujii to initialize waitStart at postmaster startup, reset it with atomic writes during child startup, and move prepared-transaction initialization to MarkAsPreparingGuts() in the follow-up delta #25.
- Torikoshi reviewed and tested that delta in #26, and Fujii committed it unchanged as f05ed5a5cf; the final message #27 confirms the push, leaving the feature and attached fixes landed.