{"Entry":{"collection":"func","key":"pg-switch-xlog","name":"pg_switch_xlog","aliases":[],"metadata":{"changed_in":["9.4"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.2"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.1"},{"descriptions_changed":false,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":["pg_switch_xlog ( ) → pg_lsn"],"removed":["pg_switch_xlog ( ) → text"]},"status":"changed","to":"9.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.5","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.6"},{"descriptions_changed":false,"doc_overhaul":false,"from":"9.6","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"removed","to":"10"}],"content_hash":"20ef67932abf8600935ca6c6a5a2fd9cfeaae8bc191ad567b8175c9581846574","first_version":"8.2","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.67794+08:00","last_version":"9.6","name":"pg_switch_xlog","name_key":"pg_switch_xlog","position":29103,"present_in":["8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"signature":"pg_switch_xlog ( ) → pg_lsn","signature_count":1,"slug":"pg-switch-xlog","source_rev":"b7bd9cda","summary":"Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-switch-xlog","SourceDatabase":"center","Version":"9.6","SourceTable":"func","SourceKey":"pg-switch-xlog","SourceRevision":"b7bd9cda","Facts":{"description":"Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)","description_html":"Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-ADMIN-BACKUP-TABLE","file":"functions-admin.html","slug":"9.6"},"group":"admin","group_label":"System Administration Functions","lang":"en","layout":"table-old","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)","description_html":"Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_switch_xlog\u003c/code\u003e ( ) → \u003ccode class=\"returnvalue\"\u003epg_lsn\u003c/code\u003e","returns":"pg_lsn","text":"pg_switch_xlog ( ) → pg_lsn","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-BACKUP-TABLE","file":"functions-admin.html","slug":"9.6"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-switch-xlog","SourceDatabase":"pgweb","Version":"9.6","Locale":"zh-Hans","Title":"pg_switch_xlog","Summary":"强制切换到新的预写式日志文件（默认仅限超级用户，但可以向其他用户授予EXECUTE权限以运行此函数）","BodyHTML":"强制切换到新的预写式日志文件（默认仅限超级用户，但可以向其他用户授予EXECUTE权限以运行此函数）\u003cpre\u003epg_switch_xlog ( ) → pg_lsn\u003c/pre\u003e强制切换到新的预写式日志文件（默认仅限超级用户，但可以向其他用户授予EXECUTE权限以运行此函数）","SourceRevision":"ca936764","ContentHash":"d97eae5c3ddc546d407d00ca1170440254201f97829df027ec007f6cfb7c5bfc","Payload":{"description_zh":"强制切换到新的预写式日志文件（默认仅限超级用户，但可以向其他用户授予EXECUTE权限以运行此函数）","description_zh_html":"强制切换到新的预写式日志文件（默认仅限超级用户，但可以向其他用户授予EXECUTE权限以运行此函数）","signatures":[{"description_zh":"强制切换到新的预写式日志文件（默认仅限超级用户，但可以向其他用户授予EXECUTE权限以运行此函数）","description_zh_html":"强制切换到新的预写式日志文件（默认仅限超级用户，但可以向其他用户授予EXECUTE权限以运行此函数）","returns":"pg_lsn","text":"pg_switch_xlog ( ) → pg_lsn","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"9.6","Ordinal":0,"Hash":"5f1661ba42aabadc4e6bd5c67e0042d05ab0e98223e658ccd3bfab042794f947","Text":"pg_switch_xlog ( ) → pg_lsn","Returns":"pg_lsn","Payload":{"description":"Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)","description_html":"Force switch to a new transaction log file (restricted to superusers by default, but other users can be granted EXECUTE to run the function)","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_switch_xlog\u003c/code\u003e ( ) → \u003ccode class=\"returnvalue\"\u003epg_lsn\u003c/code\u003e","returns":"pg_lsn","text":"pg_switch_xlog ( ) → pg_lsn","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
