1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.432 2008/04/15 20:28:46 momjian Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.433 2008/04/17 20:56:41 momjian Exp $ -->
2
2
3
3
<chapter id="functions">
4
4
<title>Functions and Operators</title>
@@ -11848,6 +11848,9 @@ SELECT set_config('log_statement_stats', 'off', false);
11848
11848
<indexterm>
11849
11849
<primary>pg_cancel_backend</primary>
11850
11850
</indexterm>
11851
+ <indexterm>
11852
+ <primary>pg_terminate_backend</primary>
11853
+ </indexterm>
11851
11854
<indexterm>
11852
11855
<primary>pg_reload_conf</primary>
11853
11856
</indexterm>
@@ -11883,6 +11886,13 @@ SELECT set_config('log_statement_stats', 'off', false);
11883
11886
<entry><type>boolean</type></entry>
11884
11887
<entry>Cancel a backend's current query</entry>
11885
11888
</row>
11889
+ <row>
11890
+ <entry>
11891
+ <literal><function>pg_terminate_backend</function>(<parameter>pid</parameter> <type>int</>)</literal>
11892
+ </entry>
11893
+ <entry><type>boolean</type></entry>
11894
+ <entry>Terminate a backend</entry>
11895
+ </row>
11886
11896
<row>
11887
11897
<entry>
11888
11898
<literal><function>pg_reload_conf</function>()</literal>
@@ -11907,9 +11917,10 @@ SELECT set_config('log_statement_stats', 'off', false);
11907
11917
</para>
11908
11918
11909
11919
<para>
11910
- <function>pg_cancel_backend</> sends a query cancel
11911
- (<systemitem>SIGINT</>) signal to a backend process identified by
11912
- process ID. The process ID of an active backend can be found from
11920
+ <function>pg_cancel_backend</> and <function>pg_terminate_backend</>
11921
+ send signals (<systemitem>SIGINT</> or <systemitem>SIGTERM</>
11922
+ respectively) to backend processes identified by process ID.
11923
+ The process ID of an active backend can be found from
11913
11924
the <structfield>procpid</structfield> column in the
11914
11925
<structname>pg_stat_activity</structname> view, or by listing the
11915
11926
<command>postgres</command> processes on the server with
0 commit comments