model-writtenrun 718 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tatsuya Kawata proposed making pg_stat_lock.wait_time double precision for consistency with other statistics views, initially storing fractional milliseconds in a double counter #1.
- Kyotaro Horiguchi questioned the precision benefit because only waits exceeding deadlock_timeout are counted, and Bertrand Drouvot confirmed that bigint was intentional; Kawata emphasized consistency and the opportunity to change the new view before PostgreSQL 19 shipped #2 #3 #4 #5.
- Drouvot proposed retaining integer counters, accumulating microseconds, and converting to double milliseconds when displaying the view; Kawata incorporated those changes into the second patchset #6 #7.
- Michael Paquier supported aligning the view before release, identified overflow with 32-bit long parameters on Windows, and requested the existing pg_stat_us_to_ms() helper; Drouvot agreed with the overflow fix and shared helper #8 #9 #11.
- Drouvot also questioned floating-point artifacts from the shared helper's multiplication formula, while Paquier prioritized consistent conversion across views; Drouvot moved that separate issue to another thread #9 #10 #11 #12.
- Paquier committed the second patchset with a PgStat_Counter parameter, a cast before microsecond multiplication, and the shared conversion helper, then reported backpatching to PostgreSQL 19 with a catalog-version bump #7 c776550e46 #13.
- Kawata closed the thread by thanking Paquier for committing and fixing the overflow issue, and thanking the reviewers; the requested type change was complete, with the helper-formula question continuing separately #14 #12.