pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: vygen@kicktipp.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6518: archive_command stderr not in log if log_destination=syslog
Date: Mon, 05 Mar 2012 13:22:48 -0500
Message-ID: <23628.1330971768@sss.pgh.pa.us> (raw)
In-Reply-To: <E1S4Wo6-0001f5-Oq@wrigleys.postgresql.org>
References: <E1S4Wo6-0001f5-Oq@wrigleys.postgresql.org>

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."

> <http://www.postgresql.org/docs/9.1/static/continuous-archiving.html#BACKUP-TIPS;

> 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



view thread (3+ messages)  latest in thread

Message-ID: <23628.1330971768@sss.pgh.pa.us>
Permalink:  ../23628.1330971768@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23628.1330971768@sss.pgh.pa.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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vygen@kicktipp.de
  Subject: Re: BUG #6518: archive_command stderr not in log if log_destination=syslog
  In-Reply-To: <23628.1330971768@sss.pgh.pa.us>
  References: <E1S4Wo6-0001f5-Oq@wrigleys.postgresql.org> <23628.1330971768@sss.pgh.pa.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