文法
PG_SLEEP(double precision)
PG_SLEEP_FOR(interval)
PG_SLEEP_UNTIL(timestamp with time zone)
使用
PG_SLEEP、PG_SLEEP_FOR、PG_SLEEP_UNTILは、サーバー・プロセスの実行を遅らせるために使用される。
例
SELECT PG_SLEEP(1.5);
// sleep for 1.5 seconds
SELECT PG_SLEEP_FOR('5 minutes');
// sleep for 5 minutes
SELECT PG_SLEEP_UNTIL('tomorrow 03:00');
// sleep until tomorrow 03:00
参考