Re: Avoiding roundoff error in pg_sleep()

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2025-09-25T19:44:34Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> The patch looks good except that (places tongue firmly in cheek) it
> will cause problems for users who want to sleep for more than 150,000
> years.

We will all be safely dead before the first such bug report ;-)

			regards, tom lane



Commits

  1. Try to avoid floating-point roundoff error in pg_sleep().