Skip to content

Commit b5b9e33

Browse files
committed
Add documentation for pg_cancel_backend and pg_terminate_backend.
Magnus Hagander
1 parent 1b80b6d commit b5b9e33

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

doc/src/sgml/func.sgml

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.209 2004/06/16 01:26:36 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.210 2004/06/24 19:57:14 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -7406,6 +7406,60 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
74067406
columns do not have OIDs of their own.
74077407
</para>
74087408

7409+
<indexterm zone="functions-misc">
7410+
<primary>pg_cancel_backend</primary>
7411+
</indexterm>
7412+
7413+
<indexterm zone="functions-misc">
7414+
<primary>pg_terminate_backend</primary>
7415+
</indexterm>
7416+
7417+
<indexterm zone="functions-misc">
7418+
<primary>signal</primary>
7419+
<secondary sortas="backend">backend processes</secondary>
7420+
</indexterm>
7421+
7422+
<para>
7423+
The functions shown in <xref
7424+
linkend="functions-misc-signal-table"> send control signals to
7425+
other server processes. Use of these functions is restricted
7426+
to superusers.
7427+
</para>
7428+
7429+
<table id="functions-misc-signal-table">
7430+
<title>Backend Signalling Functions</title>
7431+
<tgroup cols="3">
7432+
<thead>
7433+
<row><entry>Name</entry> <entry>Return Type</entry> <entry>Description</entry>
7434+
</row>
7435+
</thead>
7436+
7437+
<tbody>
7438+
<row>
7439+
<entry>
7440+
<literal><function>pg_cancel_backend</function>(<parameter>pid</parameter>)</literal>
7441+
</entry>
7442+
<entry><type>int</type></entry>
7443+
<entry>Cancel a backend's current query</entry>
7444+
</row>
7445+
<row>
7446+
<entry>
7447+
<literal><function>pg_terminate_backend</function>(<parameter>pid</parameter>)</literal>
7448+
</entry>
7449+
<entry><type>int</type></entry>
7450+
<entry>Terminate a backend process</entry>
7451+
</row>
7452+
</tbody>
7453+
</tgroup>
7454+
</table>
7455+
7456+
<para>
7457+
These functions return 1 if successful, 0 if not successful.
7458+
The process ID (<literal>pid</literal>) of an active backend can be found
7459+
from the <structfield>procpid</structfield> column in the
7460+
<structname>pg_stat_activity</structname> view, or by listing the postgres
7461+
processes on the server.
7462+
</para>
74097463
</sect1>
74107464

74117465
<sect1 id="functions-array">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy