pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <cb@df7cb.de>
To: pgsql-pkg-debian@postgresql.org
Subject: Re: log_destination
Date: Wed, 6 Mar 2013 11:37:55 +0100
Message-ID: <20130306103755.GC27001@msgid.df7cb.de> (raw)
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>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>

Re: Andres Freund 2013-03-06 <20130306102405.GL13803@alap2.anarazel.de>
> 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.

Probably impossible with %y-%m-%d style log files, because of the
variable filename as such, and you will still get a stale/later unused
fd pointing at the -l file after log switch.

One solution could be not to use -l at all, which has the advantage
that you get "I can't start" type errors at the console instead of the
misleading "Server starting" message while in fact there are fatal
errors waiting for you in the log. (On the other hand, you will
probably still want a log file for those in non-interactive startups.)

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/


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



view thread (6+ messages)  latest in thread

Message-ID: <20130306103755.GC27001@msgid.df7cb.de>
Permalink:  ../20130306103755.GC27001@msgid.df7cb.de/
Also on:    postgresql.org/message-id/20130306103755.GC27001@msgid.df7cb.de

 · 

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-pkg-debian@postgresql.org
  Cc: cb@df7cb.de
  Subject: Re: log_destination
  In-Reply-To: <20130306103755.GC27001@msgid.df7cb.de>
  References: <CABUevEyxztj1myF_sdpujeQrKzgfH+DAQd2sNfD-uxizw_9s8g@mail.gmail.com> <20130306100558.GA27001@msgid.df7cb.de> <20130306102405.GL13803@alap2.anarazel.de> <20130306103755.GC27001@msgid.df7cb.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