{"Entry":{"collection":"func","key":"pg-sleep-for","name":"pg_sleep_for","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"d9138b9707ba20277fa5a24c09b8e4659b63bb6d66c1cf82caa55e9307e66c69","derived_content_hash":"7c075331e3a9be059ef4d0238d160e73139b962b4611cee53b999b6b7f913d74","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:4314f90678762c8db279366bf0d25a2ac5d444d97910b8f17aa7140c692b39bb","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.4","group":"datetime","group_label":"Date/Time Functions And Operators","groups":["datetime"],"imported_at":"2026-09-14T21:49:48.709973+08:00","last_version":"20","name":"pg_sleep_for","name_key":"pg_sleep_for","position":8024,"present_in":["9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"6eb0a09d19e9ce42f44ce27ec94b89f588668d84d30d83dcc2edcfaa9596c4fd","repair":"wiki-repair-20261023"},"signature":"pg_sleep_for ( interval )","signature_count":1,"slug":"pg-sleep-for","source_rev":"wiki-repair-20261023:4314f90678762c8db279366bf0d25a2ac5d444d97910b8f17aa7140c692b39bb","summary":"pg_sleep makes the current session's process sleep until the given number of seconds have elapsed.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-sleep-for","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-sleep-for","SourceRevision":"wiki-repair-20261023:4314f90678762c8db279366bf0d25a2ac5d444d97910b8f17aa7140c692b39bb","Facts":{"description":"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:","description_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e makes the current session's process sleep until the given number of seconds have elapsed. Fractional-second delays can be specified. \u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e is a convenience function to allow the sleep time to be specified as an \u003ccode class=\"type\"\u003einterval\u003c/code\u003e. \u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e is a convenience function for when a specific wake-up time is desired. For example:","description_zh":"pg_sleep 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数，允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如：","description_zh_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。\u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e 是一个便捷函数，允许以 \u003ccode class=\"type\"\u003einterval\u003c/code\u003e 指定休眠时间。\u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e 是在需要指定唤醒时间时使用的便捷函数。例如：","doc":{"anchor":"FUNCTIONS-DATETIME-DELAY","file":"functions-datetime.html","sha256":"8c5053713aeaacfbe4cb00effc61f10d457c98b2a29c724b10b93819a087ea95","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-datetime.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"8c5053713aeaacfbe4cb00effc61f10d457c98b2a29c724b10b93819a087ea95","version":"18.7"},{"file":"functions-datetime.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"c3efdd1c3df6795c73dfea2ecec17ca31ff37da23d758083a581d75445851f0c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"datetime","group_label":"时间/日期函数和操作符","lang":"en","layout":"table-new","pages":["functions-datetime.html"],"prose_only":false,"signatures":[{"description":"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:","description_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e makes the current session's process sleep until the given number of seconds have elapsed. Fractional-second delays can be specified. \u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e is a convenience function to allow the sleep time to be specified as an \u003ccode class=\"type\"\u003einterval\u003c/code\u003e. \u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e is a convenience function for when a specific wake-up time is desired. For example:","description_zh":"pg_sleep 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数，允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如：","description_zh_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。\u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e 是一个便捷函数，允许以 \u003ccode class=\"type\"\u003einterval\u003c/code\u003e 指定休眠时间。\u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e 是在需要指定唤醒时间时使用的便捷函数。例如：","examples":[],"html":"\u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e ( \u003ccode class=\"type\"\u003einterval\u003c/code\u003e )","returns":"","text":"pg_sleep_for ( interval )","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-datetime.html","sha256":"2340eed8f18e5a5a727bb6bf8f828eedbab527da91082a214ea4f64a3b8750a6"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-DATETIME-DELAY","file":"functions-datetime.html","sha256":"8c5053713aeaacfbe4cb00effc61f10d457c98b2a29c724b10b93819a087ea95","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-sleep-for","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_sleep_for","Summary":"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:","BodyHTML":"\u003ccode\u003epg_sleep\u003c/code\u003e makes the current session\u0026#39;s process sleep until the given number of seconds have elapsed. Fractional-second delays can be specified. \u003ccode\u003epg_sleep_for\u003c/code\u003e is a convenience function to allow the sleep time to be specified as an \u003ccode\u003einterval\u003c/code\u003e. \u003ccode\u003epg_sleep_until\u003c/code\u003e is a convenience function for when a specific wake-up time is desired. For example:","SourceRevision":"wiki-repair-20261023:4314f90678762c8db279366bf0d25a2ac5d444d97910b8f17aa7140c692b39bb","ContentHash":"adf8ac3a0b4191e4b0ff7ca6d6091dff6f878825a3efbf46e3076751b7568601","Payload":{"description":"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:","description_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e makes the current session's process sleep until the given number of seconds have elapsed. Fractional-second delays can be specified. \u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e is a convenience function to allow the sleep time to be specified as an \u003ccode class=\"type\"\u003einterval\u003c/code\u003e. \u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e is a convenience function for when a specific wake-up time is desired. For example:","signatures":[{"description":"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:","description_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e makes the current session's process sleep until the given number of seconds have elapsed. Fractional-second delays can be specified. \u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e is a convenience function to allow the sleep time to be specified as an \u003ccode class=\"type\"\u003einterval\u003c/code\u003e. \u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e is a convenience function for when a specific wake-up time is desired. For example:","description_zh":"pg_sleep 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数，允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如：","description_zh_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。\u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e 是一个便捷函数，允许以 \u003ccode class=\"type\"\u003einterval\u003c/code\u003e 指定休眠时间。\u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e 是在需要指定唤醒时间时使用的便捷函数。例如：","examples":[],"html":"\u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e ( \u003ccode class=\"type\"\u003einterval\u003c/code\u003e )","returns":"","text":"pg_sleep_for ( interval )","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"633ff528c03158fd8c396b865849b242de58d2b08def54aa621cb2ee34200cad","Text":"pg_sleep_for ( interval )","Returns":"","Payload":{"description":"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:","description_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e makes the current session's process sleep until the given number of seconds have elapsed. Fractional-second delays can be specified. \u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e is a convenience function to allow the sleep time to be specified as an \u003ccode class=\"type\"\u003einterval\u003c/code\u003e. \u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e is a convenience function for when a specific wake-up time is desired. For example:","description_zh":"pg_sleep 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for 是一个便捷函数，允许以 interval 指定休眠时间。pg_sleep_until 是在需要指定唤醒时间时使用的便捷函数。例如：","description_zh_html":"\u003ccode class=\"function\"\u003epg_sleep\u003c/code\u003e 使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。\u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e 是一个便捷函数，允许以 \u003ccode class=\"type\"\u003einterval\u003c/code\u003e 指定休眠时间。\u003ccode class=\"function\"\u003epg_sleep_until\u003c/code\u003e 是在需要指定唤醒时间时使用的便捷函数。例如：","examples":[],"html":"\u003ccode class=\"function\"\u003epg_sleep_for\u003c/code\u003e ( \u003ccode class=\"type\"\u003einterval\u003c/code\u003e )","returns":"","text":"pg_sleep_for ( interval )","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
