Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TF7Ka-0002Bs-9j for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 17:48:00 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TF7KY-00059n-Tt for pgsql-bugs@postgresql.org; Fri, 21 Sep 2012 17:47:59 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id 669245A83C2; Fri, 21 Sep 2012 17:47:56 +0000 (UTC) Message-ID: <505CA84B.4090808@gmx.net> Date: Fri, 21 Sep 2012 13:47:55 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Tom Lane CC: Reinhard Max , Heikki Linnakangas , pgsql-bugs@postgresql.org Subject: Re: BUG #7559: syslogger doesn't close stdout and stderr References: <29557.1348072752@sss.pgh.pa.us> <505AC648.7050400@vmware.com> <17544.1348153582@sss.pgh.pa.us> In-Reply-To: <17544.1348153582@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/248 X-Sequence-Number: 34242 On 9/20/12 11:06 AM, Tom Lane wrote: > Well, I would have no objection to changing pg_ctl so that it redirects > the postmaster's stdout/stderr when a -l switch is given (actually, > I thought it did that already...). I do object to changing the logger's > behavior as you suggest, because that will break use-cases that work > today. One that I've used personally is adding "fprintf(stderr)" calls > in the logger for debugging the logger itself. The weird thing is, when the logger process dies and is restarted by the postmaster, then both stdout and stderr point to /dev/null. So the behavior is inconsistent either way.