pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Petr Jelinek <petr@2ndquadrant.com>
Subject: Re: 002_types.pl fails on some timezones on windows
Date: Sat, 02 Oct 2021 20:04:02 -0400
Message-ID: <3724943.1633219442@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGKkmWUK37Rek2OJjF_225ZQ5yiB7H5a7bb1WcHMhbTz7A@mail.gmail.com>
References: <20210930183641.7lh4jhvpipvromca@alap3.anarazel.de>
	<f4b9c195-7caa-4849-ba67-49a5d153e203@dunslane.net>
	<3204190.1633030718@sss.pgh.pa.us>
	<CA+hUKG+2P0FWyPPPdCC0wFTqPeiMxFM4fCCT6r2zPYztxi5O7w@mail.gmail.com>
	<3266414.1633045628@sss.pgh.pa.us>
	<3714784.1633207335@sss.pgh.pa.us>
	<CA+hUKGJ-7pcZQJbYK2MPyjWGBQMKVVt7GUBXttYF=-2OB_JG9g@mail.gmail.com>
	<3720049.1633213595@sss.pgh.pa.us>
	<CA+hUKGKkmWUK37Rek2OJjF_225ZQ5yiB7H5a7bb1WcHMhbTz7A@mail.gmail.com>

Thomas Munro <thomas.munro@gmail.com> writes:
> On Sun, Oct 3, 2021 at 11:26 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I'd still defend our exception for Central America: CLDR maps that
>> to Guatemala which seems pretty random, even if they haven't observed
>> DST there for a few years.  For the rest of it, though, "we follow CLDR"
>> has definitely got a lot of attraction.

Actually ... digging in the archives, the reason we have a special case
for Central America is that there was a user complaint about the previous
mapping to CST6CDT:

https://www.postgresql.org/message-id/flat/1316149023380-4809498.post%40n5.nabble.com

CST6CDT was *way* wrong, because it implies USA DST rules, so the
complaint was well-founded.  I wrote in that thread:

> I think we ought to map "Central America Standard Time" to plain CST6.
> (Or we could map to one of America/Costa_Rica, America/Guatemala,
> America/El_Salvador, etc, but that seems more likely to offend people in
> the other countries than provide any additional precision.)

However, if we can cite CLDR as authority, I see no reason why
America/Guatemala should be any more offensive than any of the
other fairly-arbitrary choices CLDR has made.  None of those
zones have observed DST for a decade or more, so at least in
recent years it wouldn't make any difference anyway.

So, I'm now sold on just making all our mappings match CLDR.
I'll do that in a couple of days if I don't hear objections.

> It would be interesting to know if that idea of matching BCP47 locale
> names to territories could address that.  Perhaps we should get that
> modern-locale-name patch first (I think I got stuck on "let's kill off
> old Windows versions so we can use this", due to confusing versioning
> and a lack of a guiding policy on our part, but I think I should just
> propose something), and then revisit this?

That seems like potentially a nice long-term solution, but it doesn't
sound likely to be back-patchable.  So I'd like to get the existing
data in as good shape as we can before we go looking for a replacement
mechanism.

			regards, tom lane





view thread (22+ messages)

Message-ID: <3724943.1633219442@sss.pgh.pa.us>
Permalink:  ../3724943.1633219442@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3724943.1633219442@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com, andrew@dunslane.net, andres@anarazel.de, peter_e@gmx.net, petr@2ndquadrant.com
  Subject: Re: 002_types.pl fails on some timezones on windows
  In-Reply-To: <3724943.1633219442@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox