Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 52DE3688851 for ; Tue, 22 Jun 2010 13:20:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 76671-05 for ; Tue, 22 Jun 2010 16:20:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 11C8A688850 for ; Tue, 22 Jun 2010 13:20:14 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o5MGKFx06222 for pgsql-docs@postgresql.org; Tue, 22 Jun 2010 12:20:15 -0400 (EDT) From: Bruce Momjian Message-Id: <201006221620.o5MGKFx06222@momjian.us> Subject: pg_ctl server log differenes on win32 To: PostgreSQL-documentation Date: Tue, 22 Jun 2010 12:20:15 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1277223615-3549-0_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-5 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/52 X-Sequence-Number: 5620 --ELM1277223615-3549-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" I have updated the pg_ctl docs to explain server output behavior differences on win32 and non-win32 platforms; applied patch attached. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. + --ELM1277223615-3549-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/doc.diff" 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 **** In mode, a new server is launched. The ! server is started in the background, and standard input is attached to ! /dev/null. The standard output and standard ! error are either appended to a log file (if the ! option is used), or redirected to pg_ctl's ! standard output (not standard error). If no log file is chosen, the ! standard output of pg_ctl should be redirected ! to a file or piped to another process such as a log rotating program ! like rotatelogs; otherwise postgres ! will write its output to the controlling terminal (from the background) ! and will not leave the shell's process group. --- 134,152 ---- In mode, a new server is launched. The ! server is started in the background, and standard input is attached ! to /dev/null (or nul on Windows). ! On Unix-like systems, by default, the server's standard output and ! standard error are send to pg_ctl's ! standard output (not standard error). The standard output of ! pg_ctl should then be redirected to a ! file or piped to another process such as a log rotating program ! like rotatelogs; otherwise postgres ! 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 to append server output to a log file. --ELM1277223615-3549-0_--