pg_sleep makes the current session's process sleep until the given number of seconds have elapsed.
Signatures & examples
pg_sleep_until ( timestamp with time zone )
pg_sleep makes the current session's process sleep until the given number of seconds have elapsed. Fractional-second delays can be specified. pg_sleep_for is a convenience function to allow the sleep time to be specified as an interval. pg_sleep_until is a convenience function for when a specific wake-up time is desired. For example:Version history 2