Re: log_destination

From: Christoph Berg <cb(at)df7cb(dot)de>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: "pgsql-pkg-debian(at)postgresql(dot)org" <pgsql-pkg-debian(at)postgresql(dot)org>
Subject: Re: log_destination
Date: 2013-03-06 10:05:58
Message-ID: 20130306100558.GA27001@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

Re: Magnus Hagander 2013-03-05 <CABUevEyxztj1myF_sdpujeQrKzgfH+DAQd2sNfD-uxizw_9s8g(at)mail(dot)gmail(dot)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.

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Responses

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Christoph Berg 2013-03-06 10:14:01 Re: Updates for the apt.postgresql.org instructions
Previous Message Gregory Sutter 2013-03-06 02:19:46 apt.postgresql.org, user report