↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 函数

pg_sleep_until

pg_sleep 使当前会话的进程休眠,直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数,允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如:

英文手册覆盖始于 PostgreSQL 7.1. 来源历史与运行验证各自保留独立版本边界。

当前阅读 PG 19·选择有来源记录的版本

group
datetime
group label
时间/日期函数和操作符
lang
en
layout
table-new
pages
functions-datetime.html
prose only
false

版本定义 PG 19

pg_sleep 使当前会话的进程休眠,直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数,允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如:
pg_sleep_until ( timestamp with time zone )
pg_sleep 使当前会话的进程休眠,直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数,允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如:

函数签名与重载

pg_sleep_until ( timestamp with time zone )
pg_sleep 使当前会话的进程休眠,直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数,允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如:

比较版本

完整来源事实

documentation revision

{"inputs":[{"file":"functions-datetime.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"b7a6cb5aaa8097293830b1e09beb16b975d72dbe156b9901e6f34ba0e1dd8ceb","version":"19rc2"},{"file":"functions-datetime.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"c18874697badf3f08c76d8b4453195fcca4140306821e183775ec45771cbdee1","version":"19rc2"}],"release":"19rc2","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 19 · wiki-repair-20261023:fd36c91d7c1c4b6ecbdc2bba2f4e10f6c21d5a722818955aa1eac730c38da53e

正文语言: zh-Hans · wiki-repair-20261023:fd36c91d7c1c4b6ecbdc2bba2f4e10f6c21d5a722818955aa1eac730c38da53e