{"Entry":{"collection":"func","key":"pg-terminate-backend","name":"pg_terminate_backend","aliases":[],"metadata":{"changed_in":["14"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.2"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.5"},{"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":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":false,"doc_overhaul":false,"from":"13","group_changed":null,"signatures":{"added":["pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean"],"removed":["pg_terminate_backend ( pid integer ) → boolean"]},"status":"changed","to":"14"},{"descriptions_changed":true,"doc_overhaul":false,"from":"14","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"15"},{"descriptions_changed":true,"doc_overhaul":false,"from":"17","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"18"}],"content_hash":"78c15475b8b699dbffa1fe83757724a8762bf7618c743fc9cc70eb75e7b1277c","first_version":"8.4","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.68761+08:00","last_version":"20","name":"pg_terminate_backend","name_key":"pg_terminate_backend","position":29107,"present_in":["8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean","signature_count":1,"slug":"pg-terminate-backend","source_rev":"b7bd9cda","summary":"Terminates the session whose backend process has the specified process ID.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-terminate-backend","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-terminate-backend","SourceRevision":"b7bd9cda","Facts":{"description":"Terminates the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being terminated or the calling role has privileges of pg_signal_backend, however only superusers can terminate superuser backends. As an exception, roles with privileges of pg_signal_autovacuum_worker are permitted to terminate autovacuum worker processes, which are otherwise considered superuser backends.","description_html":"Terminates the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being terminated or the calling role has privileges of \u003ccode class=\"literal\"\u003epg_signal_backend\u003c/code\u003e, however only superusers can terminate superuser backends. As an exception, roles with privileges of \u003ccode class=\"literal\"\u003epg_signal_autovacuum_worker\u003c/code\u003e are permitted to terminate autovacuum worker processes, which are otherwise considered superuser backends.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-ADMIN-SIGNAL-TABLE","file":"functions-admin.html","slug":"18"},"group":"admin","group_label":"System Administration Functions","lang":"en","layout":"table-new","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"Terminates the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being terminated or the calling role has privileges of pg_signal_backend, however only superusers can terminate superuser backends. As an exception, roles with privileges of pg_signal_autovacuum_worker are permitted to terminate autovacuum worker processes, which are otherwise considered superuser backends.","description_html":"Terminates the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being terminated or the calling role has privileges of \u003ccode class=\"literal\"\u003epg_signal_backend\u003c/code\u003e, however only superusers can terminate superuser backends. As an exception, roles with privileges of \u003ccode class=\"literal\"\u003epg_signal_autovacuum_worker\u003c/code\u003e are permitted to terminate autovacuum worker processes, which are otherwise considered superuser backends.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_terminate_backend\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003epid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etimeout\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e \u003ccode class=\"literal\"\u003eDEFAULT\u003c/code\u003e \u003ccode class=\"literal\"\u003e0\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-SIGNAL-TABLE","file":"functions-admin.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-terminate-backend","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_terminate_backend","Summary":"终止具有指定进程ID的后端进程的会话。如果调用角色是正在终止的后端的角色的成员，或者调用角色具有pg_signal_backend的权限，则也允许执行此操作，但只有超级用户才能终止超级用户后端。例外情况是，具有pg_signal_autovacuum_worker角色权限的角色可以终止 autovacuum 工作进程，而这些进程原本被视为超级用户后端。","BodyHTML":"终止具有指定进程ID的后端进程的会话。如果调用角色是正在终止的后端的角色的成员，或者调用角色具有\u003ccode\u003epg_signal_backend\u003c/code\u003e的权限，则也允许执行此操作，但只有超级用户才能终止超级用户后端。例外情况是，具有\u003ccode\u003epg_signal_autovacuum_worker\u003c/code\u003e角色权限的角色可以终止 autovacuum 工作进程，而这些进程原本被视为超级用户后端。\u003cpre\u003epg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean\u003c/pre\u003e终止具有指定进程ID的后端进程的会话。如果调用角色是正在终止的后端的角色的成员，或者调用角色具有\u003ccode\u003epg_signal_backend\u003c/code\u003e的权限，则也允许执行此操作，但只有超级用户才能终止超级用户后端。例外情况是，具有\u003ccode\u003epg_signal_autovacuum_worker\u003c/code\u003e角色权限的角色可以终止 autovacuum 工作进程，而这些进程原本被视为超级用户后端。","SourceRevision":"ca936764","ContentHash":"f026ae7b747f996a87f8df3d5962d31ee4bc6a1b9755fb1978a7b1e8f18f9f26","Payload":{"description_zh":"终止具有指定进程ID的后端进程的会话。如果调用角色是正在终止的后端的角色的成员，或者调用角色具有pg_signal_backend的权限，则也允许执行此操作，但只有超级用户才能终止超级用户后端。例外情况是，具有pg_signal_autovacuum_worker角色权限的角色可以终止 autovacuum 工作进程，而这些进程原本被视为超级用户后端。","description_zh_html":"终止具有指定进程ID的后端进程的会话。如果调用角色是正在终止的后端的角色的成员，或者调用角色具有\u003ccode class=\"literal\"\u003epg_signal_backend\u003c/code\u003e的权限，则也允许执行此操作，但只有超级用户才能终止超级用户后端。例外情况是，具有\u003ccode class=\"literal\"\u003epg_signal_autovacuum_worker\u003c/code\u003e角色权限的角色可以终止 autovacuum 工作进程，而这些进程原本被视为超级用户后端。","signatures":[{"description_zh":"终止具有指定进程ID的后端进程的会话。如果调用角色是正在终止的后端的角色的成员，或者调用角色具有pg_signal_backend的权限，则也允许执行此操作，但只有超级用户才能终止超级用户后端。例外情况是，具有pg_signal_autovacuum_worker角色权限的角色可以终止 autovacuum 工作进程，而这些进程原本被视为超级用户后端。","description_zh_html":"终止具有指定进程ID的后端进程的会话。如果调用角色是正在终止的后端的角色的成员，或者调用角色具有\u003ccode class=\"literal\"\u003epg_signal_backend\u003c/code\u003e的权限，则也允许执行此操作，但只有超级用户才能终止超级用户后端。例外情况是，具有\u003ccode class=\"literal\"\u003epg_signal_autovacuum_worker\u003c/code\u003e角色权限的角色可以终止 autovacuum 工作进程，而这些进程原本被视为超级用户后端。","returns":"boolean","text":"pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"b78c1aa8f276320e31f0a274854f717ca8eca86b37edf49ea80b96cf06175198","Text":"pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean","Returns":"boolean","Payload":{"description":"Terminates the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being terminated or the calling role has privileges of pg_signal_backend, however only superusers can terminate superuser backends. As an exception, roles with privileges of pg_signal_autovacuum_worker are permitted to terminate autovacuum worker processes, which are otherwise considered superuser backends.","description_html":"Terminates the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being terminated or the calling role has privileges of \u003ccode class=\"literal\"\u003epg_signal_backend\u003c/code\u003e, however only superusers can terminate superuser backends. As an exception, roles with privileges of \u003ccode class=\"literal\"\u003epg_signal_autovacuum_worker\u003c/code\u003e are permitted to terminate autovacuum worker processes, which are otherwise considered superuser backends.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_terminate_backend\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003epid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etimeout\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e \u003ccode class=\"literal\"\u003eDEFAULT\u003c/code\u003e \u003ccode class=\"literal\"\u003e0\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
