Skip to content

Commit 7b6f290

Browse files
committed
Update pg_ctl docs to explain server output behavior differences on
win32 and non-win32 platforms.
1 parent 8327060 commit 7b6f290

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

doc/src/sgml/ref/pg_ctl-ref.sgml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.50 2010/04/08 01:39:37 rhaas Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.51 2010/06/22 16:19:36 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -134,16 +134,19 @@ PostgreSQL documentation
134134

135135
<para>
136136
In <option>start</option> mode, a new server is launched. The
137-
server is started in the background, and standard input is attached to
138-
<filename>/dev/null</filename>. The standard output and standard
139-
error are either appended to a log file (if the <option>-l</option>
140-
option is used), or redirected to <application>pg_ctl</application>'s
141-
standard output (not standard error). If no log file is chosen, the
142-
standard output of <application>pg_ctl</application> should be redirected
143-
to a file or piped to another process such as a log rotating program
144-
like <application>rotatelogs</>; otherwise <command>postgres</command>
145-
will write its output to the controlling terminal (from the background)
146-
and will not leave the shell's process group.
137+
server is started in the background, and standard input is attached
138+
to <filename>/dev/null</filename> (or <literal>nul</> on Windows).
139+
On Unix-like systems, by default, the server's standard output and
140+
standard error are send to <application>pg_ctl</application>'s
141+
standard output (not standard error). The standard output of
142+
<application>pg_ctl</application> should then be redirected to a
143+
file or piped to another process such as a log rotating program
144+
like <application>rotatelogs</>; otherwise <command>postgres</command>
145+
will write its output to the controlling terminal (from the
146+
background) and will not leave the shell's process group. On
147+
Windows, by default the server's standard output and standard error
148+
are sent to the terminal. These default behaviors can be changed
149+
by using <option>-l</option> to append server output to a log file.
147150
</para>
148151

149152
<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