2 ms·
> The function sleeps for the given number of seconds. However, when you need to sleep for longer than just a few seconds, calculating the number of seconds can
by theandrewbailey 5y ago
> The function sleeps for the given number of seconds. However, when you need to sleep for longer than just a few seconds, calculating the number of seconds can be annoying, for example:
db=# SELECT pg_sleep(14400);
> How long will this function sleep for? Don't take out the calculator, the function will sleep for 4 minutes.
It doesn't take a calculator to realize that 14,400 seconds isn't 4 minutes. It's 4 hours.