model-writtenrun 986 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jun 2020 · 1 entry
- Andres Freund began with #1, showing that EXPLAIN ANALYZE timing overhead could nearly double runtime and proposing int64 interval storage plus nonserializing RDTSC acquisition.
Mar 2021 · 1 entry
- Thomas Munro supported avoiding pipeline stalls in #3, while identifying invariant-counter, cross-socket synchronization and virtual-machine migration constraints.
Jul 2022 · 1 entry
- After a two-year gap, Lukas Fittl revived the prototype in #4 with explicit initialization, Linux clocksource checks and fallback timing; Maciek Sakrejda reported substantial speedups in #6 and later withdrew an apparent timing discrepancy after retesting in #13.
Sep 2022 - Feb 2023 · 6 entries
- David Geier took over in #10 and developed #11, replacing the unreliable /proc/cpuinfo frequency fallback with CPUID-based host and hypervisor detection and adding caller cleanups.
- Andres separated the representation prerequisites in #26, and Tom Lane's review in #27 led to struct-wrapped int64 storage in #35 so callers could not depend directly on the integer representation.
- Tom rejected optional initializer-value macros in #36, and Andres dropped them while landing the exact zero-initialization patch as 25b2aba0c3 and the representation patch with a small Windows arithmetic adjustment as 03023a2664, both from #35.
- The remainder in #44 retained interval helpers and pg_test_timing improvements, while #45 reported that the new inline clock_gettime use exposed an AIX PL/Python include-order problem.
- Clock-source reporting in EXPLAIN was deferred in #46, while Andres argued in #47 for separate fast RDTSC acquisition for executor nodes and ordered RDTSCP acquisition for more precise timing.
- David implemented that split and fixed-point conversion with overflow handling in #52, combining his TSC work with Andres's remaining prerequisites; #56 and #58 repaired portability and temporarily removed hypervisor-specific frequency probing.
Jan - Feb 2024 · 1 entry
- The work stalled and was returned with feedback in #60; Andres then noticed in #61 that the purported fast path had accidentally switched to RDTSCP, undermining its intended benefit.
Mar 2025 · 1 entry
- Lukas revived the series in #62, restored actual RDTSC acquisition, repaired frequency and histogram handling and demonstrated useful acceleration on virtual machines.
Jul - Sep 2025 · 2 entries
- Andres's long-uptime performance report in #63 led Lukas to subtract tick values before conversion in #64, which also removed separately landed nanosecond-reporting work and split out CPUID detection and utility changes.
- Michael Paquier moved existing configure-check bugs to a separate discussion in #66, while Álvaro Herrera proposed automatic testing of both clock modes in #68; David eventually supplied that change in #78 after omitting it from the preceding attachment.
Oct 2025 - May 2026 · 21 entries
- Lukas argued for a user escape hatch in #73, Robert Haas supported configuration in #74 and specified automatic versus explicit choices in #77, and David added the initial GUC in #81.
- Lukas reworked initialization around GUC hooks in #82 and corrected its wrong-branch attachment in #83, allowing runtime selection and explicit TSC use beyond Linux while keeping acquisition modes consistent.
- Reviews from Jakub Wartak in #84 and David in #87 sharpened VM detection, diagnostics and portability requirements, leading to the Windows/POSIX conversion split and timing_clock_source interface in #92.
- Lukas eliminated conversion overhead in #94, and David supplied Windows compilation fixes and benchmarks in #98; Andres's detailed review in #99 then prompted smaller prerequisites, better platform abstraction and avoidance of expensive intrinsic headers.
- The LAZY-macro removal from #102 landed unchanged as 9d6294c09e, while John Naylor's independent architecture-macro proposal in #103 was explicitly left outside the timing series in #107.
- The remaining series in #107 centralized CPU detection and broadened default TSC selection, but Andres rejected its HyperV MSR access in #108; his calibration experiments in #113 instead led to the short calibration fallback in #115.
- John's CPUID review in #110 exposed overwritten feature results and motivated wrapper extraction, while #115 also introduced exploratory ARM support whose heterogeneous-core timer behavior remained unresolved.
- Zsolt Parragi found calibration convergence, mixed-unit arithmetic and mid-query source-switch problems in #116; Lukas corrected these in #120, adding reverse conversion, initialization checks and EXEC_BACKEND frequency propagation.
- John's objection to unnecessary CPUID structure indirection in #121 produced named register indexes in #124, which landed as be6a7494d2 with local naming and comment edits described in #127.
- The loop-overhead prerequisite from #128 landed as 82c0cb4e67 with a redundant conditional removed, and the independent CPUID build checks from #131 landed as effaa464af with include-style cleanup.
- Lukas split CPU detection from core TSC support in #134, strengthened initialization and overflow testing and removed socket-count gating after testing a large multisocket machine.
- Final review produced independent calibration reporting and CPUID register clearing in #141, followed by superuser-only clock selection and clearer platform restrictions in #145 because unrestricted source changes could distort recorded timings.
- The final submission #148 updated documentation and explicitly deferred ARM support; its conversion infrastructure, CPU frequency detection and core TSC patches landed with light edits as 0022622c93, bcb2cf41f9 and 294520c444.
- The pg_test_timing member of #148 followed as 16fca48254 after explanatory documentation was restored through #152 and #153.
- Lukas reported a Windows buildfarm sampling failure in #155 and proposed a loop optimization in #156, but Andres showed in #157 that the real problem was a reported 7 kHz TSC frequency versus roughly 2.5 GHz from calibration.
- New diagnostics in #158 helped Lukas reproduce incorrect generic CPUID frequencies under AWS Windows virtualization; the fix in #160 restricted virtual machines to hypervisor-specific frequency information or calibration.
- That fix landed with comment edits as 7fc36c5db5, and #166 confirmed the affected buildfarm member was healthy again; the sampling optimization remained unrelated and uncommitted.
- Andres reviewed diagnostic memory lifetime in #159 and supplied a fixup in #162; Lukas folded it into #163, adding warnings when calibrated and selected frequencies differed by more than ten percent.
- Haibo Yan identified unsafe diagnostic calibration on CPUs lacking RDTSCP in #165, leading to prerequisite guards and a failing diagnostic exit status in #166.
- Tom Lane's Coverity report in #167 and approval of an inline guard in #170 led to the final combined diagnostics and zero-loop fix in #171.
- Andres announced the unchanged final diagnostics patch as committed in #172, matching 5ba34f6dc8; the x86 work was complete, while ARM support remained deferred as stated in #154 and additional fast-timing users remained future work as described in #145.