Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 98BFB11158C for ; Tue, 14 Feb 2012 19:45:45 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RxS47-0000GZ-2v for pgsql-bugs@postgresql.org; Tue, 14 Feb 2012 23:45:45 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q1ENjUBP011969; Tue, 14 Feb 2012 18:45:30 -0500 (EST) To: calestyo@scientia.net cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6459: logging_collector=off but log_filename set inhibits logoutpu In-reply-to: References: Comments: In-reply-to calestyo@scientia.net message dated "Tue, 14 Feb 2012 21:09:24 +0000" Date: Tue, 14 Feb 2012 18:45:29 -0500 Message-ID: <11968.1329263129@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/115 X-Sequence-Number: 32458 calestyo@scientia.net writes: > http://www.postgresql.org/docs/9.1/static/runtime-config-logging.html > claims that log_filename is only used when logging_collector is enabled. That is a true statement, as can easily be proven by looking at the source code: nothing except syslogger.c pays any attention to the Log_filename variable. > However it seems that if the later is off, but the former is set (to > anything), no log output goes to stderr as well. That would depend on other settings that you haven't mentioned, particularly log_destination. Keep in mind also that the active setting of logging_collector can't be changed without a postmaster restart (which is why it's a separate variable from log_destination). regards, tom lane