Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Christoph Berg <myon(at)debian(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)
Date: 2019-06-04 15:57:03
Message-ID: 87k1e18i3q.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:
>> I believe I pointed out a long, long time ago that this tie-breaking
>> strategy was insane, and that the rule should be to prefer canonical
>> names and use something else only in the case of a strictly better
>> match.

Tom> This is assuming that the tzdb data has a concept of a canonical
Tom> name for a zone, which unfortunately it does not. UTC, UCT,
Tom> Etc/UTC, and about four other strings are equivalent names for the
Tom> same zone so far as one can tell from the installed data.

The simplest definition is that the names listed in zone.tab or
zone1970.tab if you prefer that one are canonical, and Etc/UTC and the
Etc/GMT[offset] names could be regarded as canonical too. Everything
else is either an alias or a backward-compatibility hack.

--
Andrew (irc:RhodiumToad)

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2019-06-04 16:07:15 Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)
Previous Message Andres Freund 2019-06-04 15:53:30 Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2019-06-04 15:57:54 Re: Minimal logical decoding on standbys
Previous Message Andres Freund 2019-06-04 15:53:30 Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)