Skip to content

Commit 6890157

Browse files
committed
Put a tad more detail in the discussion of postmaster and postgres
signal handling.
1 parent 723a9bd commit 6890157

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

doc/src/sgml/ref/postgres-ref.sgml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postgres-ref.sgml,v 1.35 2003/08/31 17:32:24 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postgres-ref.sgml,v 1.36 2003/09/18 20:30:15 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -365,13 +365,29 @@ PostgreSQL documentation
365365
<title>Notes</title>
366366

367367
<para>
368-
To stop a running query use the <literal>SIGINT</literal> signal. To
369-
tell <command>postgres</command> to reread the configuration file,
370-
use a <literal>SIGHUP</literal> signal. The
371-
<command>postmaster</command> uses <literal>SIGTERM</literal>
368+
To cancel a running query, send the <literal>SIGINT</literal> signal
369+
to the <command>postgres</command> process running that command.
370+
</para>
371+
372+
<para>
373+
To tell <command>postgres</command> to reread the configuration file,
374+
send a <literal>SIGHUP</literal> signal. Normally it's best to
375+
<literal>SIGHUP</literal> the <command>postmaster</command> instead;
376+
the <command>postmaster</command> will in turn <literal>SIGHUP</literal>
377+
each of its children. But in some cases it might be desirable to have only
378+
one <command>postgres</command> process reread the configuration file.
379+
</para>
380+
381+
<para>
382+
The <command>postmaster</command> uses <literal>SIGTERM</literal>
372383
to tell a <command>postgres</command> process to quit normally and
373384
<literal>SIGQUIT</literal> to terminate without the normal cleanup.
374-
These <emphasis>should not</emphasis> be used by users.
385+
These signals <emphasis>should not</emphasis> be used by users. It is also
386+
unwise to send <literal>SIGKILL</literal> to a <command>postgres</command>
387+
process --- the <command>postmaster</command> will interpret this as
388+
a crash in <command>postgres</command>, and will force all the sibling
389+
<command>postgres</command> processes to quit as part of its standard
390+
crash-recovery procedure.
375391
</para>
376392

377393
</refsect1>

doc/src/sgml/ref/postmaster.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.39 2003/09/12 00:12:47 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.40 2003/09/18 20:30:15 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -473,10 +473,11 @@ PostgreSQL documentation
473473
<para>
474474
If at all possible, <emphasis>do not</emphasis> use
475475
<literal>SIGKILL</literal> to kill the
476-
<command>postmaster</command>. This will prevent
476+
<command>postmaster</command>. Doing so will prevent
477477
<command>postmaster</command> from freeing the system
478478
resources (e.g., shared memory and semaphores) that it holds before
479-
terminating.
479+
terminating. This may cause problems for starting a fresh
480+
<command>postmaster</command> run.
480481
</para>
481482

482483
<para>

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