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 1iWJ09-0000U8-Fk for pgsql-general@arkaria.postgresql.org; Sun, 17 Nov 2019 11:45:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iWJ06-00083Z-6I for pgsql-general@arkaria.postgresql.org; Sun, 17 Nov 2019 11:45:54 +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 1iWJ05-00083S-Ms for pgsql-general@lists.postgresql.org; Sun, 17 Nov 2019 11:45:53 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iWIzz-0001G8-IL for pgsql-general@lists.postgresql.org; Sun, 17 Nov 2019 11:45:52 +0000 Received: by mail-lj1-x244.google.com with SMTP id v8so15566788ljh.5 for ; Sun, 17 Nov 2019 03:45:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pingpong-net.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=0TX84PyeHfDacw03Y5Jqgl7M4sZ5kqHFLGopx6rOlKs=; b=esyYKKj9ol1hIUkRcgoTNDnwcnkfSS1fuOBCMN7go0QgG+lemiVdn1Z4reFt7IBUn5 OVn6KTOsFNWuzwuSFvTFxMazS2rmBmmS4i9TBeoCpVFhY+HE4ndWosLifiZ9oNRSql7g OzZsMXXUpswSNJPYLzked4Typd2CUBO5QrBpZS2f6zCKXAZf9W8HJITBJZRf5t9hH0Ox KhRdMZKrAKJ2oqNxR5pyjQgK6cxxKkUNDnjZ8uusLvx88KCa7Ma/bY8rTYRFntOzGo5c mW1SBwgeeyTLKyXc6I+GSXgFXEzT2EP8aG9djYHZr/hp9rr2yxLPBWB0ZgmCvVw2XYy8 7+Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=0TX84PyeHfDacw03Y5Jqgl7M4sZ5kqHFLGopx6rOlKs=; b=ElWH4pTOJ4+yaAIz6Q1CBa71UZP9/4SuFQXaSHXJOgaLfUo1AW/sbzVEcnDwHFL0AO 1iUim8KEBaGLA+PwrYLuHIHkKIb5etMj3lkh+GqUxCJBiHF0GfOyLbvuivfKHBrCg+nc AKywJ6v4gHKUw2akelZTsS++w7BHbrLWvy10mfLn/byfnaWR0huubtinE3zzsBg9WpaQ U4m3HikDSIndadpbPlC6n2aSpzuiVc+Ef7fTuVx9xyep+atYYT2r0wdQTH10ZfcNywrW qfzHzqEZaxylxXlVKmb3RHbqWgQEoDeJlBXRYZ5FeAjpfcAW+565yUvBhYfdLESVCiDo j75g== X-Gm-Message-State: APjAAAWnd7efEtEVJK5z+KFReYLWHyY5QyGzSRI98L5RAjnNG3DetTZj ynebCSxBAQ1199lz04XfbEF6Eg== X-Google-Smtp-Source: APXvYqwbKQy8JU2gGdYuDvj4plnA2TIbpBkjtShYycVMCzCslsQY6xmZ2Y64EGBlA/Xlo/SF2RGYpw== X-Received: by 2002:a05:651c:305:: with SMTP id a5mr17790916ljp.144.1573991144022; Sun, 17 Nov 2019 03:45:44 -0800 (PST) Received: from [10.0.1.14] (c213-89-209-223.bredband.comhem.se. [213.89.209.223]) by smtp.gmail.com with ESMTPSA id e25sm1994302lfj.26.2019.11.17.03.45.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Nov 2019 03:45:43 -0800 (PST) From: Palle Girgensohn Message-Id: <1AF1B1D9-16C7-4FE7-8BA5-4CCC8D38CC02@pingpong.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_D273B9CB-6E31-473C-BB5E-0DBC050D30B0" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: here does postgres take its timezone information from? Date: Sun, 17 Nov 2019 12:45:42 +0100 In-Reply-To: Cc: Tom Lane , Adrian Klaver , Chris Withers , "pgsql-generallists.postgresql.org" , "pgsql@freebsd.org" To: Thomas Munro 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> <6658.1573884775@sss.pgh.pa.us> X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_D273B9CB-6E31-473C-BB5E-0DBC050D30B0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > 16 nov. 2019 kl. 23:06 skrev Thomas Munro : >=20 > On Sat, Nov 16, 2019 at 7:13 PM Tom Lane > wrote: >> 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). >>=20 >>> 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? >>=20 >> 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. >>=20 >> 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. >=20 > Perhaps the best thing would be to revert this for the older > PostgreSQL releases so that people doing minor version upgrades are > inconvenienced by a system that can't start up after "pkg upgrade", > but do it for 12 since not many people will be using that yet? That could be a way, yes. Any thoughts on this from others following = this thread? Palle --Apple-Mail=_D273B9CB-6E31-473C-BB5E-0DBC050D30B0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

16 nov. 2019 kl. 23:06 skrev Thomas Munro <thomas.munro@gmail.com>:

On Sat, Nov = 16, 2019 at 7:13 PM Tom Lane <tgl@sss.pgh.pa.us> = wrote:
Palle = Girgensohn <girgen@pingpong.net> writes:
15 nov. 2019 kl. 21:32 skrev Thomas Munro = <thomas.munro@gmail.com>:
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.

Perhaps the = best thing would be to revert this for the older
PostgreSQL = releases so that people doing minor version upgrades are
inconvenienced = by a system that can't start up after "pkg upgrade",
but do it for = 12 since not many people will be using that = yet?

That = could be a way, yes. Any thoughts on this from others following this = thread?

Palle

= --Apple-Mail=_D273B9CB-6E31-473C-BB5E-0DBC050D30B0--