SELECT pg_sleep_for('3 minutes') SELECT pg_sleep_until('tomorrow 05:00'); Время выхода из сна может быть и дольше, в зависимости от загрузки сервера СУБД.

  vk.com

  dbtut.com

SELECT pg_sleep(1.5); SELECT pg_sleep_for('5 minutes'); SELECT pg_sleep_until('tomorrow 03:00') Make sure that your session does not hold more locks than necessary when calling pg_sleep or its variants.

  www.postgresql.org

PostgreSQL Sleep Function pg_sleep – Postgres Delay Execution. pg_sleep makes the current session’s process sleep until seconds seconds have elapsed. Seconds is a value of type double precision, so fractional-second delays can be specified.

  www.if-not-true-then-false.com

  it-blackcat.blogspot.com

  www.sqliz.com

  ru.stackoverflow.com

  www.commandprompt.com

In PostgreSQL, you can use the pg_sleep() function to delay execution for a given number of seconds. SELECT clock_timestamp(), pg_sleep(.5), clock_timestamp(), pg_sleep(.5), clock_timestamp()

  database.guide

The PG_SLEEP() function allows you to create a delay (sleep) in your queries. The following example uses the PG_SLEEP() function to pause the execution for 3 seconds before returning any result

  www.postgresqltutorial.com

Page generated - 0.1425130367 (f606d2291c9ea98e93286a0fd72c7d3d)