pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: PostgreSQL-documentation <pgsql-docs@postgresql.org>
Subject: pg_ctl server log differenes on win32
Date: Tue, 22 Jun 2010 12:20:15 -0400 (EDT)
Message-ID: <201006221620.o5MGKFx06222@momjian.us> (raw)

I have updated the pg_ctl docs to explain server output behavior
differences on win32 and non-win32 platforms;  applied patch attached.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + None of us is going to be here forever. +

Attachments:

/rtmp/doc.diff (text/x-diff, 2.2K) download Index: ref/pg_ctl-ref.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v retrieving revision 1.50 diff -c -r1.50 pg_ctl-ref.sgml *** ref/pg_ctl-ref.sgml 8 Apr 2010 01:39:37 -0000 1.50 --- ref/pg_ctl-ref.sgml 22 Jun 2010 16:18:31 -0000 *************** *** 134,149 **** <para> In <option>start</option> mode, a new server is launched. The ! server is started in the background, and standard input is attached to ! <filename>/dev/null</filename>. The standard output and standard ! error are either appended to a log file (if the <option>-l</option> ! option is used), or redirected to <application>pg_ctl</application>'s ! standard output (not standard error). If no log file is chosen, the ! standard output of <application>pg_ctl</application> should be redirected ! to a file or piped to another process such as a log rotating program ! like <application>rotatelogs</>; otherwise <command>postgres</command> ! will write its output to the controlling terminal (from the background) ! and will not leave the shell's process group. </para> <para> --- 134,152 ---- <para> In <option>start</option> mode, a new server is launched. The ! server is started in the background, and standard input is attached ! to <filename>/dev/null</filename> (or <literal>nul</> on Windows). ! On Unix-like systems, by default, the server's standard output and ! standard error are send to <application>pg_ctl</application>'s ! standard output (not standard error). The standard output of ! <application>pg_ctl</application> should then be redirected to a ! file or piped to another process such as a log rotating program ! like <application>rotatelogs</>; otherwise <command>postgres</command> ! will write its output to the controlling terminal (from the ! background) and will not leave the shell's process group. On ! Windows, by default the server's standard output and standard error ! are sent to the terminal. These default behaviors can be changed ! by using <option>-l</option> to append server output to a log file. </para> <para>

Message-ID: <201006221620.o5MGKFx06222@momjian.us>
Permalink:  ../201006221620.o5MGKFx06222@momjian.us/
Also on:    postgresql.org/message-id/201006221620.o5MGKFx06222@momjian.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us
  Subject: Re: pg_ctl server log differenes on win32
  In-Reply-To: <201006221620.o5MGKFx06222@momjian.us>
  References: <201006221620.o5MGKFx06222@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox