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 1hYBLp-0004In-4d for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jun 2019 15:27:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYBLm-0004Bt-S4 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jun 2019 15:27:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYBLm-0004Bm-J6 for pgsql-hackers@lists.postgresql.org; Tue, 04 Jun 2019 15:27:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYBLf-0004SO-86 for pgsql-hackers@postgresql.org; Tue, 04 Jun 2019 15:27:45 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x54FRVqa030080; Tue, 4 Jun 2019 11:27:31 -0400 From: Tom Lane To: Christoph Berg cc: PostgreSQL Hackers Subject: Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.) In-reply-to: <20190604085735.GD24018@msg.df7cb.de> References: <20190604085735.GD24018@msg.df7cb.de> Comments: In-reply-to Christoph Berg message dated "Tue, 04 Jun 2019 10:57:35 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <65799.1559662051.1@sss.pgh.pa.us> Date: Tue, 04 Jun 2019 11:27:31 -0400 Message-ID: <65800.1559662051@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Christoph Berg writes: > There is something wrong here. On Debian Buster/unstable, using > system tzdata (2019a-1), if /etc/timezone is "Etc/UTC": > 11.3's initdb adds timezone = 'UCT' to postgresql.conf > 12beta1's initdb add timezone = 'Etc/UCT' to postgresql.conf Hm, I don't have a Debian machine at hand, but I'm unable to reproduce this using macOS or RHEL. I tried things like $ TZ=UTC initdb ... selecting default timezone ... UTC ... Is your build using --with-system-tzdata? If so, which tzdb release is the system on, and is it a completely stock copy of that release? Given the tie-breaking behavior in findtimezone.c, * ... Often there will be several * zones with identical rankings (since the IANA database assigns multiple * names to many zones). We break ties arbitrarily by preferring shorter, * then alphabetically earlier zone names. it's not so surprising that UCT might be chosen, but I don't understand how Etc/UCT would be. BTW, does Debian set up /etc/timezone as a symlink, by any chance, rather than a copy or hard link? If it's a symlink, we could improve matters by teaching identify_system_timezone() to inspect it. regards, tom lane