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 1htEkB-0002j8-K5 for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Aug 2019 17:19:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1htEkA-0003Ly-7s for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Aug 2019 17:19:58 +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 1htEk9-0003IL-T5 for pgsql-hackers@lists.postgresql.org; Thu, 01 Aug 2019 17:19:57 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1htEk7-0003bF-RR for pgsql-hackers@postgresql.org; Thu, 01 Aug 2019 17:19:57 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A592622136; Thu, 1 Aug 2019 13:19:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 01 Aug 2019 13:19:54 -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=fm2; bh=wQu57rNVloUBHJR1mvew4f9b8t1 KhyM/PZCB3fVqfoI=; b=DpylrE9BV8doGj02RNNDAizqv8zm4KVHzrMoqgk3Ifo V1M515FtXwCmjuK7Tj7wldtB0HuGehvtZ/DjIa7MsiDn9aS6sk6jm+dxOTgUBgmY IRm9n4NJew99l2frEXgAJxNDACXMq3+yLQhAR4b/qW+lQNU4C5kKtyicrRXmupAn 7V9S6wxqAXIvwMXeR4H2Z2LEciYpZwjnmxlZtIG0qgX2PhR9h6uArI4PmWZLk5Ju 5bqiKurFofRl2rTH0j/9UTCOl8H++/wOJ/K8iR1ueXQDOMPWl4njC9nEmIvjBpS/ VerMjMQjaW8sBp7V1MDl0MhjhYXkmXW8ZkJS/SQXvQQ== 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=fm3; bh=wQu57r NVloUBHJR1mvew4f9b8t1KhyM/PZCB3fVqfoI=; b=j9lYeBsbyGyoC5Q8/KbNAr R+89aY1KYDco3ozoV7n9sC5xK3FxIMUI71/VR3/Co6Wwha9KitlRFPwpfKJnQYvP XFc/BH4WzsPFLUcwwi42xg0GgivEfGGMJ73H/bHmU0HOD3QJvlqGkiGE292iZehl fIMlXWRypMcM5G4Yh/kb66+wZMIo+KDWmR3b/u2YsvAJDmiefMltUQdw54apfcMt 3du2GyTmscf9ZIwisM5890PrJk2t5N7dStzxp2kYas9NKsgO1G4enwDY0DrDC7q2 8CkDXGRlyi03GjwkvwMJsOezhIwlVgP6POkuYe3NxN8ALb+hj9dEtlcXHk1+/LYg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrleejgddutdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudekrddvfeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt 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 B6E0280062; Thu, 1 Aug 2019 13:19:52 -0400 (EDT) Date: Thu, 1 Aug 2019 10:19:51 -0700 From: Andres Freund To: Tom Lane Cc: Shay Rojansky , Thomas Munro , Andrew Gierth , Robert Haas , Stephen Frost , Christoph Berg , PostgreSQL Hackers Subject: Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.) Message-ID: <20190801171951.pzpp5ywdn4pgqjzc@alap3.anarazel.de> References: <2643.1561508327@sss.pgh.pa.us> <877e98syi5.fsf@news-spur.riddles.org.uk> <8736jwsdv2.fsf@news-spur.riddles.org.uk> <17148.1561568815@sss.pgh.pa.us> <87y31oq9g6.fsf@news-spur.riddles.org.uk> <3961.1564086915@!sss.pgh.pa.us> <5560.1564668481@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5560.1564668481@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-08-01 10:08:01 -0400, Tom Lane wrote: > I have in fact committed that patch. It won't do anything for your > problem with respect to existing installations that may have picked > "localtime", but it'll at least prevent new initdb runs from picking > that. > Avoid choosing "localtime" or "posixrules" as TimeZone during initdb. > > Some platforms create a file named "localtime" in the system > timezone directory, making it a copy or link to the active time > zone file. If Postgres is built with --with-system-tzdata, initdb > will see that file as an exact match to localtime(3)'s behavior, > and it may decide that "localtime" is the most preferred spelling of > the active zone. That's a very bad choice though, because it's > neither informative, nor portable, nor stable if someone changes > the system timezone setting. Extend the preference logic added by > commit e3846a00c so that we will prefer any other zone file that > matches localtime's behavior over "localtime". When used and a symlink, could we resolve the symlink when determining the timezone? When loading a timezone in the backend, not during initdb. While that'd leave us with the instability, it'd at least would help clients etc understand what the setting actually means? Greetings, Andres Freund