Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWsfr-00058h-8i for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Dec 2018 00:46:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gWsfp-00066g-UJ for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Dec 2018 00:46:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWsfp-00066Z-HM for pgsql-bugs@lists.postgresql.org; Wed, 12 Dec 2018 00:46:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWsfn-0006QN-13 for pgsql-bugs@lists.postgresql.org; Wed, 12 Dec 2018 00:46:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wBC0ki8d028851; Tue, 11 Dec 2018 19:46:44 -0500 From: Tom Lane To: gugoll@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15547: default timezone on servers running while time changed from PDT to PST reverting to UTC. In-reply-to: <15547-078cffc281899f40@postgresql.org> References: <15547-078cffc281899f40@postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Wed, 12 Dec 2018 00:07:09 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28849.1544575604.1@sss.pgh.pa.us> Date: Tue, 11 Dec 2018 19:46:44 -0500 Message-ID: <28850.1544575604@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > I have a bunch of servers that never restarted in the past couple of months > and had postgres running since before Nov. 4th and I discovered that their > default timezone changed in the background. Hmph. Ordinarily I'd expect that the default zone data would be cached in the postmaster and inherited via fork() by backends, so that as long as you didn't do something like change the timezone setting in postgresql.conf, the behavior would be stable until postmaster restart. (People who live in zones with frequent DST law changes have complained of that ... but I'm not very much in a hurry to change it.) So it's not at all clear what happened here. I think that Red Hat did push out a tzdata update in early November, but even so, the behavior of America/Los_Angeles shouldn't have changed. *Maybe* this could be explained by having restarted those postmasters during the tiny interval where the package update was happening and there wasn't anything valid for /etc/localtime to point at --- but that stretches credulity. If you can figure out a way to reproduce this, we'd be interested to hear what it is. regards, tom lane