|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.432 2008/04/15 20:28:46 momjian Exp $ --> |
|
|
|
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.433 2008/04/17 20:56:41 momjian Exp $ --> |
|
|
|
|
|
|
|
|
|
<chapter id="functions"> |
|
|
|
|
<title>Functions and Operators</title> |
|
|
|
@ -11848,6 +11848,9 @@ SELECT set_config('log_statement_stats', 'off', false); |
|
|
|
|
<indexterm> |
|
|
|
|
<primary>pg_cancel_backend</primary> |
|
|
|
|
</indexterm> |
|
|
|
|
<indexterm> |
|
|
|
|
<primary>pg_terminate_backend</primary> |
|
|
|
|
</indexterm> |
|
|
|
|
<indexterm> |
|
|
|
|
<primary>pg_reload_conf</primary> |
|
|
|
|
</indexterm> |
|
|
|
@ -11883,6 +11886,13 @@ SELECT set_config('log_statement_stats', 'off', false); |
|
|
|
|
<entry><type>boolean</type></entry> |
|
|
|
|
<entry>Cancel a backend's current query</entry> |
|
|
|
|
</row> |
|
|
|
|
<row> |
|
|
|
|
<entry> |
|
|
|
|
<literal><function>pg_terminate_backend</function>(<parameter>pid</parameter> <type>int</>)</literal> |
|
|
|
|
</entry> |
|
|
|
|
<entry><type>boolean</type></entry> |
|
|
|
|
<entry>Terminate a backend</entry> |
|
|
|
|
</row> |
|
|
|
|
<row> |
|
|
|
|
<entry> |
|
|
|
|
<literal><function>pg_reload_conf</function>()</literal> |
|
|
|
@ -11907,9 +11917,10 @@ SELECT set_config('log_statement_stats', 'off', false); |
|
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
|
<function>pg_cancel_backend</> sends a query cancel |
|
|
|
|
(<systemitem>SIGINT</>) signal to a backend process identified by |
|
|
|
|
process ID. The process ID of an active backend can be found from |
|
|
|
|
<function>pg_cancel_backend</> and <function>pg_terminate_backend</> |
|
|
|
|
send signals (<systemitem>SIGINT</> or <systemitem>SIGTERM</> |
|
|
|
|
respectively) to backend processes identified by process ID. |
|
|
|
|
The process ID of an active backend can be found from |
|
|
|
|
the <structfield>procpid</structfield> column in the |
|
|
|
|
<structname>pg_stat_activity</structname> view, or by listing the |
|
|
|
|
<command>postgres</command> processes on the server with |
|
|
|
|