{"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","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"],"signature":"pg_sleep_for ( interval )","signature_count":1,"slug":"pg-sleep-for","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-DATETIME-DELAY","file":"functions-datetime.html","slug":"18"},"group":"datetime","group_label":"Date/Time Functions And Operators","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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-DATETIME-DELAY","file":"functions-datetime.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-sleep-for","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_sleep_for","Summary":"pg_sleep使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。pg_sleep_for是一个便捷函数，允许以interval指定休眠时间。pg_sleep_until是在需要指定唤醒时间时使用的便捷函数。例如：","BodyHTML":"\u003ccode\u003epg_sleep\u003c/code\u003e使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。\u003ccode\u003epg_sleep_for\u003c/code\u003e是一个便捷函数，允许以\u003ccode\u003einterval\u003c/code\u003e指定休眠时间。\u003ccode\u003epg_sleep_until\u003c/code\u003e是在需要指定唤醒时间时使用的便捷函数。例如：\u003cpre\u003epg_sleep_for ( interval )\u003c/pre\u003e\u003ccode\u003epg_sleep\u003c/code\u003e使当前会话的进程休眠，直到经过指定的秒数。可以指定带小数部分的秒数作为延迟时间。\u003ccode\u003epg_sleep_for\u003c/code\u003e是一个便捷函数，允许以\u003ccode\u003einterval\u003c/code\u003e指定休眠时间。\u003ccode\u003epg_sleep_until\u003c/code\u003e是在需要指定唤醒时间时使用的便捷函数。例如：","SourceRevision":"ca936764","ContentHash":"b6ba4e0ec46f4d56055e1093467c8ebbb4335e003e385f3ef6c8b3c925ef3303","Payload":{"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是在需要指定唤醒时间时使用的便捷函数。例如：","signatures":[{"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是在需要指定唤醒时间时使用的便捷函数。例如：","returns":"","text":"pg_sleep_for ( interval )","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
