Sep 2025

1 commit
Try to avoid floating-point roundoff error in pg_sleep().
25 Sep 2025Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #12 of 2 reviewers saw the final version

The commit preserves all logic from #1 in src/backend/utils/adt/misc.c; its only patch changes replace 1e6 with USECS_PER_SEC and clarify the ceil() comment. Tom proposed the constant substitution in #7 and confirmed pushing the fix in #9.

  • Robert Haassaw the final versiontrailerRobert reproduced the reported behavior and said the patch looked good in #4, after which only a constant substitution and comment clarification changed.
  • Nathan Bossartsaw the final versiontrailerNathan approved the patch while examining loop timing and alternative calculations in #6 and #8, with only light edits before commitment.

Credits across 1 commit

Author
Tom Lane1
Reviewer
Nathan Bossart1
Robert Haas1
Committer
Tom Lane1