From: Andres Freund <andres@2ndquadrant.com>
To: Christoph Berg <cb@df7cb.de>
To: Magnus Hagander <magnus@hagander.net>
To: pgsql-pkg-debian@postgresql.org <pgsql-pkg-debian@postgresql.org>
Subject: Re: log_destination
Date: Wed, 6 Mar 2013 11:24:05 +0100
Message-ID: <20130306102405.GL13803@alap2.anarazel.de> (raw)
In-Reply-To: <20130306100558.GA27001@msgid.df7cb.de>
References: <CABUevEyxztj1myF_sdpujeQrKzgfH+DAQd2sNfD-uxizw_9s8g@mail.gmail.com>
<20130306100558.GA27001@msgid.df7cb.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>
On 2013-03-06 11:05:58 +0100, Christoph Berg wrote:
> Re: Magnus Hagander 2013-03-05 <CABUevEyxztj1myF_sdpujeQrKzgfH+DAQd2sNfD-uxizw_9s8g@mail.gmail.com>
> > Is there a particular reason why we're not using the postgresql log
> > collector in the debian packages, instead relying on pg_ctl -l, other
> > than this being legacy from back before we even had the log collector?
>
> The problem is that errors during early startup (syntax errors in
> postgresql.conf, port unavailable, shmmax, whatever) will not go into
> the logging collector, but will still appear in the "pg_ctl -l" log
> file. Changing the default here would mean the admin had to check two
> log files if the server doesn't even start.
>
> pg_ctl -l ~/logfile -o '--logging-collector=on --log-destination=stderr --log-directory=pg_log --ffo=bla' start
>
> -> complains about "ffo" in ~/logfile
>
> Apart from that, I agree that the logging collector would be a lot
> nicer than the current logrotate rules with the "copytruncate"
> insanity.
Both pg_ctl and the logging collector seem to open files in O_APPEND
mode. So - provided we could figure out the correct filename - they
could just log to the same file.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
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-pkg-debian@postgresql.org
Cc: andres@2ndquadrant.com, cb@df7cb.de, magnus@hagander.net
Subject: Re: log_destination
In-Reply-To: <20130306102405.GL13803@alap2.anarazel.de>
References: <CABUevEyxztj1myF_sdpujeQrKzgfH+DAQd2sNfD-uxizw_9s8g@mail.gmail.com> <20130306100558.GA27001@msgid.df7cb.de> <20130306102405.GL13803@alap2.anarazel.de>
* 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