Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDBW6-0000oA-E0 for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 06 Mar 2013 10:24:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UDBW5-0001MK-RR for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 06 Mar 2013 10:24:09 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDBW5-0001ME-41 for pgsql-pkg-debian@postgresql.org; Wed, 06 Mar 2013 10:24:09 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDBW3-00015z-1v for pgsql-pkg-debian@postgresql.org; Wed, 06 Mar 2013 10:24:08 +0000 Received: from intern.anarazel.de (host90-152-0-50.ipv4.regusnet.com [90.152.0.50]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id ACA0F4E8002; Wed, 6 Mar 2013 11:24:05 +0100 (CET) Date: Wed, 6 Mar 2013 11:24:05 +0100 From: Andres Freund To: Christoph Berg , Magnus Hagander , "pgsql-pkg-debian@postgresql.org" Subject: Re: log_destination Message-ID: <20130306102405.GL13803@alap2.anarazel.de> References: <20130306100558.GA27001@msgid.df7cb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130306100558.GA27001@msgid.df7cb.de> X-Pg-Spam-Score: -2.6 (--) 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 On 2013-03-06 11:05:58 +0100, Christoph Berg wrote: > Re: Magnus Hagander 2013-03-05 > > 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