Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UmX4w-0003TY-7N for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Jun 2013 22:30:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UmX4v-0003C4-Mv for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Jun 2013 22:30:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UmX4u-0003B5-9q for pgsql-bugs@postgresql.org; Tue, 11 Jun 2013 22:30:12 +0000 Received: from smtp.01.com ([199.36.142.181]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UmX4m-0003PU-L1 for pgsql-bugs@postgresql.org; Tue, 11 Jun 2013 22:30:11 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 9A6173900D9 for ; Tue, 11 Jun 2013 17:30:02 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cx0k0x5-0xdx for ; Tue, 11 Jun 2013 17:30:02 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 74E3F3900DD for ; Tue, 11 Jun 2013 17:30:02 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 5BF783900DB for ; Tue, 11 Jun 2013 17:30:02 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KuWCFaovi7fE for ; Tue, 11 Jun 2013 17:30:02 -0500 (CDT) Received: from [10.10.10.5] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) by smtp-out-2.01.com (Postfix) with ESMTPSA id 7D1653900D9 for ; Tue, 11 Jun 2013 17:30:01 -0500 (CDT) Message-ID: <51B7A4E7.2070905@pgexperts.com> Date: Tue, 11 Jun 2013 15:29:59 -0700 From: Jeff Frost Organization: PostgresSQL Experts, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #8225: logging options don't change after reload References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 06/11/13 15:27, jeff@pgexperts.com wrote: > The following bug has been logged on the website: > > Bug reference: 8225 > Logged by: Jeff Frost > Email address: jeff@pgexperts.com > PostgreSQL version: 9.1.8 > Operating system: various > Description: > > I've seen this a few times on client servers but still can't seem to boil it > down to a nice reproducible test case. > > What happens is that we change various logging options in postgresql.conf, > then reload, and every so often, the settings don't seem to take effect even > though they are logged as being changed. > > Here's an example from a recent logging run: > > grep -hi checkpoint *.csv > 2013-05-31 12:58:33.051 MDT,,,5398,,5189c940.1516,8,,2013-05-07 21:40:48 > MDT,,0,LOG,00000,"parameter ""log_checkpoints"" changed to > ""on""",,,,,,,,,"" > 2013-05-31 15:18:36.131 MDT,,,5398,,5189c940.1516,22,,2013-05-07 21:40:48 > MDT,,0,LOG,00000,"parameter ""log_checkpoints"" removed from configuration > file, reset to default",,,,,,,,,"" > > So, note that log_checkpoints was logged as being changed, then 2hrs 20mins > later it's logged as being set back to default, but there's not a single > checkpoint logged in that time period. I checked and checkpoint_timeout is > indeed set to 300s. > > Also, in addition, we change the log_filename to datacollection-%H and while > that also shows up in the log during the reload: > > 2013-05-31 12:58:33.051 MDT,,,5398,,5189c940.1516,9,,2013-05-07 21:40:48 > MDT,,0,LOG,00000,"parameter ""log_filename"" changed to > ""datacollection-%H""",,,,,,,,,"" > > and the logfile is created, postgresql continues to log to the old filename > for the duration of the logging run. > > I've seen this on recent 9.0, 9.1 and 9.2 versions. This particular run was > on 9.1.8. > > > Oh sorry, that should specify "Various linux version" meaning: Ubuntu 12.04, Ubuntu 10.04, CentOS 5/6, Scientific Linux 6. -- Jeff Frost CTO, PostgreSQL Experts, Inc. Phone: 1-888-PG-EXPRT x506 FAX: 415-762-5122 http://www.pgexperts.com/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs