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 1hbiw6-0002Ar-In for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Jun 2019 09:55:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbiw4-0006T6-Ti for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Jun 2019 09:55:52 +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 1hbiw4-0006Sy-Hp for pgsql-hackers@lists.postgresql.org; Fri, 14 Jun 2019 09:55:52 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbiw1-0000UB-Nx for pgsql-hackers@postgresql.org; Fri, 14 Jun 2019 09:55:51 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 45QGFZ6YCrz3DyP; Fri, 14 Jun 2019 11:55:46 +0200 (CEST) Date: Fri, 14 Jun 2019 11:55:46 +0200 From: Christoph Berg To: Tom Lane Cc: PostgreSQL Hackers Subject: Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.) Message-ID: <20190614095546.GA15107@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Tom Lane , PostgreSQL Hackers References: <20190604085735.GD24018@msg.df7cb.de> <65800.1559662051@sss.pgh.pa.us> <20190605084735.GC15829@msg.df7cb.de> <24452.1560285699@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <24452.1560285699@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Tom Lane 2019-06-11 <24452.1560285699@sss.pgh.pa.us> > The only way I can get it to pick "Etc/UCT" is if that's what I put > into /etc/localtime. (In which case I maintain that that's not a bug, > or at least not our bug.) Did you try a symlink or a plain file for /etc/localtime? > So I'm still mystified by Christoph's report, and am forced to suspect > pilot error -- specifically, /etc/localtime not containing what he said. On Debian unstable, deleting /etc/timezone, $TZ not set, and with this symlink: lrwxrwxrwx 1 root root 27 Mär 28 14:49 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC /usr/lib/postgresql/11/bin/initdb -D pgdata $ grep timezone pgdata/postgresql.conf log_timezone = 'UCT' timezone = 'UCT' /usr/lib/postgresql/12/bin/initdb -D pgdata $ grep timezone pgdata/postgresql.conf log_timezone = 'Etc/UTC' timezone = 'Etc/UTC' Same behavior on Debian Stretch (stable): lrwxrwxrwx 1 root root 27 Mai 7 11:14 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC $ grep timezone pgdata/postgresql.conf log_timezone = 'UCT' timezone = 'UCT' $ grep timezone pgdata/postgresql.conf log_timezone = 'Etc/UTC' timezone = 'Etc/UTC' > Anyway, moving on to the question of what should we do about this, > I don't really have anything better to offer than back-patching 23bd3cec6. The PG12 behavior seems sane, so +1. Christoph