{"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","derived_content_hash":"b3051d190a22d6615e732c4d6429e3623970d5cec2f2f4899f179980894e2fa2","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:8c3a51861568dac0a248eb2ab5ba427111c7d2f832ddc54b3d075e8217df220b","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:4a126d24af75d1995eb54e9feef56c5c463c5382004cadbc5b45100801a4a220","receipt_sha256":"555ffa2129323a0c5d88efac7f1b5a18aea1c87dc9b21e6ec9e0e66a19186bbd","repair":"wiki-repair-20261023"},"signature":"pg_terminate_backend ( pid integer, timeout bigint DEFAULT 0 ) → boolean","signature_count":1,"slug":"pg-terminate-backend","source_rev":"wiki-repair-20261023:8c3a51861568dac0a248eb2ab5ba427111c7d2f832ddc54b3d075e8217df220b","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":"wiki-repair-20261023:8c3a51861568dac0a248eb2ab5ba427111c7d2f832ddc54b3d075e8217df220b","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":"终止具有指定进程 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 工作进程，而这些进程原本被视为超级用户后端。","doc":{"anchor":"FUNCTIONS-ADMIN-SIGNAL-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","version":"18.7"},{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"830e894d29fec30b7c350c915fcaed4a63b24d57f2c96150bf25fa07fb43849c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"admin","group_label":"系统管理函数","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":"终止具有指定进程 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 工作进程，而这些进程原本被视为超级用户后端。","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-admin.html","sha256":"b4fab9daceb7883fd75b32b6eb5398f2bbbfbbed5c83d1b2bf99cc8d842cdaf7"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-SIGNAL-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-terminate-backend","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_terminate_backend","Summary":"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.","BodyHTML":"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\u003epg_signal_backend\u003c/code\u003e, however only superusers can terminate superuser backends. As an exception, roles with privileges of \u003ccode\u003epg_signal_autovacuum_worker\u003c/code\u003e are permitted to terminate autovacuum worker processes, which are otherwise considered superuser backends.","SourceRevision":"wiki-repair-20261023:8c3a51861568dac0a248eb2ab5ba427111c7d2f832ddc54b3d075e8217df220b","ContentHash":"a5fbb60b20fc98d25ff1878bfcbe1a67bf87d54b691cf980e3b6b44b1a73b26e","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.","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":"终止具有指定进程 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 工作进程，而这些进程原本被视为超级用户后端。","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"终止具有指定进程 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 工作进程，而这些进程原本被视为超级用户后端。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
