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 1hYCYb-0003N9-Sl for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jun 2019 16:45:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYCYa-0006WZ-O4 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jun 2019 16:45:04 +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 1hYCYa-0006WF-C0 for pgsql-hackers@lists.postgresql.org; Tue, 04 Jun 2019 16:45:04 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYCYY-0004kM-6o for pgsql-hackers@postgresql.org; Tue, 04 Jun 2019 16:45:03 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9D4B5469; Tue, 4 Jun 2019 12:45:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 04 Jun 2019 12:45:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=qThEzDGgHBZ9fmMgESxn3nRPJIW lfy4VkxSqem/rqsI=; b=wBcKuOuNWPB8EyOQ+ZINHuvZzjT8wYUzBCrgXgqzRM5 LL9zXALJ99aCPCPiDwNhI08zLt85tY0OFXWYd4BRTKy9xDRip94hFhSDphURsHe1 aKu2cosRPfCHlOjlczKhOa6QihHfEdBdOoaebDR91wrh4qAHOaiLkfU0lygIsk1C GtnPx/uise+oQnhdyOGpVX+6dc8MEleru/6nWl2blkUhOzW4Ufw2O5c15hpSjs6s GTvmYhfPDBqzXHXMOIHijilgaixQE8mLQF1ds1wEq/F9qZQ3wOQNg/Rl6FcbjvvP pZ80sIAFbuTohHERpVxaAlvKDsG65IMVAU8DuS6WzTA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=qThEzD GgHBZ9fmMgESxn3nRPJIWlfy4VkxSqem/rqsI=; b=dG4BxTInkNwRPUdfy6Clx0 STVto+5s0RWo4e11WOanK6KuWeNTomelUkJalwwZONFX3khTvQ8fnGFG73AYvtRC EjAUyEAoewuGZCMpJMe+wVw732opxIghsk4ot+V4Oj/LkD7quE4x4+Hw+zz6GAf0 9Is6Rd1B4MexEcy2tJts9ESW1br/ZqYXqLRGU92XD4Nw/sEkNCon/pBJ42n2DzSX ++/dIDaKuGvwJ5IWZmEi6VS/hK3JZLBFVxCcZnS+kgyLlnRHJjQsWkBrKFPnRNBm aUqvxQO80KTGaL2iNQirMfvH7X4UhsygRAnOHkmLmtaynaUcbBL4h3fqXXfjH9rw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefledguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecukfhppe eijedrudeitddrvddukedrvdefjeenucfrrghrrghmpehmrghilhhfrhhomheprghnughr vghssegrnhgrrhgriigvlhdruggvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 248FD38008B; Tue, 4 Jun 2019 12:44:59 -0400 (EDT) Date: Tue, 4 Jun 2019 16:44:57 +0000 From: Andres Freund To: Andrew Gierth Cc: Christoph Berg , Tom Lane , PostgreSQL Hackers Subject: Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.) Message-ID: <20190604164457.772invck3lgxk75s@alap3.anarazel.de> References: <20190604085735.GD24018@msg.df7cb.de> <87ftop8gtr.fsf@news-spur.riddles.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ftop8gtr.fsf@news-spur.riddles.org.uk> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-06-04 17:20:42 +0100, Andrew Gierth wrote: > fwiw on FreeBSD with no /etc/localtime and no TZ in the environment (and > hence running on UTC), I get "UCT" on both 11.3 and HEAD. That makes sense. As far as I can tell the reason that 12 sometimes ends up with the proper timezone is that we shortcut the search by: /* * Try to avoid the brute-force search by seeing if we can recognize the * system's timezone setting directly. * * Currently we just check /etc/localtime; there are other conventions for * this, but that seems to be the only one used on enough platforms to be * worth troubling over. */ if (check_system_link_file("/etc/localtime", &tt, resultbuf)) return resultbuf; which is actually a behaviour changing, rather than just an optimization, when there's a lot of equivalently scoring timezones. Greetings, Andres Freund