Re: Comment on timezone and interval types - Mailing list pgsql-general

From Tom Lane
Subject Re: Comment on timezone and interval types
Date
Msg-id 20370.1098889993@sss.pgh.pa.us
Whole thread Raw
In response to Re: Comment on timezone and interval types  (Michael Glaesemann <grzm@myrealbox.com>)
List pgsql-general
Michael Glaesemann <grzm@myrealbox.com> writes:
> On Oct 27, 2004, at 6:00 PM, Martijn van Oosterhout wrote:
>> How can there be a "canonical list of known timezones" if every
>> operating system has it's own list. Maybe you can provide a base list,
>> but you have to allow for people to make their own.

> My understanding is that with the addition of the zic time zone data to
> the PostgreSQL server, there's no longer any need to rely on OS time
> zone data.

Correct, but it is still the case that different installations will need
to have slightly different timezone lists.  Consider for example the
australian_timezones kluge we have now, and consider that there are
several known cases of zone name conflicts that are not covered by
australian_timezones (the one I remember at the moment is IST which both
the Israelis and the Indians use; but I think there are some others).
I think the most reasonable way to solve this will be to invent a
configuration file that lets people list the zone abbreviations they
want to use and the corresponding UTC offsets.  We will need a mapping
method that can cope with changes in such a file.

But having said that, I concur with Martijn that there is no problem,
because the OIDs (or whatever numeric ID we use) are inside the database
and will never be visible outside it.  There is no more portability risk
here than there is in using platform-native byte order in integers.

            regards, tom lane

pgsql-general by date:

Previous
From: "Deepa K"
Date:
Subject: ABRUPT CLOSURE OF POSTGRESQL SOCKET
Next
From: Tom Lane
Date:
Subject: Re: [NOVICE] ABRUPT CLOSURE OF POSTGRESQL SOCKET