From c4fd93b3f3626a613e3aada7def37835e7cef87f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 17 Apr 2008 20:56:41 +0000 Subject: Re-enable pg_terminate_backend() using SIGTERM. SIGTERM testing still needed. --- doc/src/sgml/func.sgml | 19 +++++++++++++++---- doc/src/sgml/runtime.sgml | 10 +++++++++- 2 files changed, 24 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 23a758cd02e..7e120bc8621 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -11848,6 +11848,9 @@ SELECT set_config('log_statement_stats', 'off', false); pg_cancel_backend + + pg_terminate_backend + pg_reload_conf @@ -11883,6 +11886,13 @@ SELECT set_config('log_statement_stats', 'off', false); boolean Cancel a backend's current query + + + pg_terminate_backend(pid int) + + boolean + Terminate a backend + pg_reload_conf() @@ -11907,9 +11917,10 @@ SELECT set_config('log_statement_stats', 'off', false); - pg_cancel_backend sends a query cancel - (SIGINT) signal to a backend process identified by - process ID. The process ID of an active backend can be found from + pg_cancel_backend and pg_terminate_backend + send signals (SIGINT or SIGTERM + respectively) to backend processes identified by process ID. + The process ID of an active backend can be found from the procpid column in the pg_stat_activity view, or by listing the postgres processes on the server with diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index eb9b937a818..63259faff5a 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,4 +1,4 @@ - + Operating System Environment @@ -1372,6 +1372,14 @@ $ kill -INT `head -1 /usr/local/pgsql/data/postmaster.pid` + + + To terminate a session while allowing other sessions to continue, use + pg_terminate_backend() () or send a + SIGTERM signal to the child process associated with + the session. + -- cgit v1.2.3