Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDBjX-0002VK-T5 for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 06 Mar 2013 10:38:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UDBjX-0001Z8-8c for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 06 Mar 2013 10:38:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDBjW-0001Z3-TM for pgsql-pkg-debian@postgresql.org; Wed, 06 Mar 2013 10:38:02 +0000 Received: from cl-2390.ham-01.de.sixxs.net ([2001:6f8:900:955::2] helo=feynman.df7cb.de) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDBjU-0001rZ-PR for pgsql-pkg-debian@postgresql.org; Wed, 06 Mar 2013 10:38:02 +0000 Received: from msgid.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 45A966969A for ; Wed, 6 Mar 2013 11:38:00 +0100 (CET) Date: Wed, 6 Mar 2013 11:37:55 +0100 From: Christoph Berg To: pgsql-pkg-debian@postgresql.org Subject: Re: log_destination Message-ID: <20130306103755.GC27001@msgid.df7cb.de> Mail-Followup-To: Christoph Berg , pgsql-pkg-debian@postgresql.org References: <20130306100558.GA27001@msgid.df7cb.de> <20130306102405.GL13803@alap2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130306102405.GL13803@alap2.anarazel.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org 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