LoginSignup
0
0

PG_SLEEP, PG_SLEEP_FOR, PG_SLEEP_UNTIL

Last updated at Posted at 2024-04-17

文法

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

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0