Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 91A1C159078 for ; Mon, 5 Mar 2012 14:23:06 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S4cYp-0007HA-3t for pgsql-bugs@postgresql.org; Mon, 05 Mar 2012 18:23:05 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q25IMmVR023629; Mon, 5 Mar 2012 13:22:49 -0500 (EST) To: vygen@kicktipp.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6518: archive_command stderr not in log if log_destination=syslog In-reply-to: References: Comments: In-reply-to vygen@kicktipp.de message dated "Mon, 05 Mar 2012 12:14:26 +0000" Date: Mon, 05 Mar 2012 13:22:48 -0500 Message-ID: <23628.1330971768@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/33 X-Sequence-Number: 32594 vygen@kicktipp.de writes: > The documentation for 9.1 says about archive_command: > "Any messages written to stderr from the script will appear in the database > server log, allowing complex configurations to be diagnosed easily if they > fail." > > This is not true if log_destination=syslog Yes, that's poorly worded --- you have to be using output to stderr for this to work as the docs claim. > Messages to sdterr does not appear at all anywhere. I prefer syslog because > of pgfouine. > Great if it can be fixed. At least this should be documented. There really isn't any way that we can force stderr output from a script to magically go to syslog. But we can at least clarify the docs, and I will go do so. Thanks for the report! regards, tom lane