Re: Timezone List

From: Andrew - Supernews <andrew+nonews(at)supernews(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Timezone List
Date: 2006-09-17 14:57:20
Message-ID: slrnegqoif.2ea3.andrew+nonews@atlantis.supernews.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On 2006-09-17, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
>>> Any view over the full timezone names should also include the
>>> corresponding data from zone.tab in the timezone library source.
>
>> Just noticed this mail, so that's not included in my patch.
>
> BTW, now that the view is in, I can't help noticing that it shows 550
> different zone names, while there are only 392 entries in the zone.tab
> file. I conclude that the zic people don't take maintenance of zone.tab
> very seriously, and hence that we probably shouldn't rely on it.

You're jumping to conclusions there.

Eliminating the alias names (i.e. anything not in the form Continent/*),
we get only 45 differences, of which 40 are backward-compatibility aliases
(see the "backward" source file). The remaining five are:

Asia/Riyadh87
Asia/Riyadh88
Asia/Riyadh89 (the three Riyadh?? zones are local solar time for specific
years)
Asia/Istanbul (alias for Europe/Istanbul)
Europe/Nicosia (alias for Asia/Nicosia)

So the list in zone.tab _is_ complete, it just doesn't list aliases (which
it isn't supposed to). The reason to include zone.tab in with the data
(unlike the current setup which doesn't bother to even install the file
anywhere) is to provide an answer to the question "what timezone(s) are
applicable to a specific country". For that purpose aliases are irrelevent.

--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2006-09-17 15:15:49 Re: [HACKERS] Developer`s Wiki
Previous Message Dave Page 2006-09-17 14:50:14 Re: [HACKERS] Developer's Wiki

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-09-17 19:09:01 Re: tiny patch to make vacuumdb -a's database order match pg_dumpall
Previous Message Joachim Wieland 2006-09-17 09:49:51 Re: [HACKERS] Timezone List