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 1iVrKV-0004Gg-UY for pgsql-general@arkaria.postgresql.org; Sat, 16 Nov 2019 06:13:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iVrKU-0007nn-1i for pgsql-general@arkaria.postgresql.org; Sat, 16 Nov 2019 06:13:06 +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 1iVrKT-0007ng-OS for pgsql-general@lists.postgresql.org; Sat, 16 Nov 2019 06:13:05 +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 1iVrKR-00021f-0i for pgsql-general@lists.postgresql.org; Sat, 16 Nov 2019 06:13:05 +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 xAG6CtL8006659; Sat, 16 Nov 2019 01:12:55 -0500 From: Tom Lane To: Palle Girgensohn cc: Thomas Munro , Adrian Klaver , Chris Withers , "pgsql-generallists.postgresql.org" , "pgsql@freebsd.org" Subject: Re: here does postgres take its timezone information from? In-reply-to: <3BE294B4-9232-4EBF-B3DD-90E1C5E978E2@pingpong.net> References: <653e0b33-84d7-642b-2692-eb68e5f86709@withers.org> <4cfd4b1b-5135-6329-5cf7-bae73929dfeb@aklaver.com> <0589cad7-4841-afbd-8cc6-c4b050ca466c@withers.org> <0b76a023-3fdf-cb61-f4c3-a8ff4ba5b4e9@aklaver.com> <18417.1573003209@sss.pgh.pa.us> <12931.1573846697@sss.pgh.pa.us> <3BE294B4-9232-4EBF-B3DD-90E1C5E978E2@pingpong.net> Comments: In-reply-to Palle Girgensohn message dated "Sat, 16 Nov 2019 00:35:34 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6657.1573884775.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 16 Nov 2019 01:12:55 -0500 Message-ID: <6658.1573884775@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Palle Girgensohn writes: > 15 nov. 2019 kl. 21:32 skrev Thomas Munro : >> Ugh. It doesn't have the old backward compatibility names like >> US/Pacific installed by default, which is a problem if that's what >> initdb picked for your cluster (or you've stored references to any of >> those names in other ways). > One quick fix is to revert the change. Tom thinks this is not reason to = revert. Would it be enough to edit the postgresql.conf to use the correct = "modern" name for US/Pacific (PST?)? In rhar case, an update note might be= sufficient? I think the "official" name of that zone is America/Los_Angeles. But initdb might seize on the US/Pacific alias, if available, because it's shorter. We've seen related problems with other time zone names, though usually it was just cosmetic and not a reason for the postmaster to fail to start. Yes, changing the zone name in postgresql.conf should be a sufficient fix. In theory, a FreeBSD user ought to know the "official" alias for their zone, since the rest of the system would expect that. So this is slightly tedious if initdb chose a non-official alias, but I don't think it's reason to panic. regards, tom lane