Re: Question about timezones - Mailing list pgsql-general

From Tom Lane
Subject Re: Question about timezones
Date
Msg-id 11847.1097243520@sss.pgh.pa.us
Whole thread Raw
In response to Re: Question about timezones  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Question about timezones  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> But it doesn't seem to work to actually work out times across the
> world w.r.t. daylight savings.
> ...
> For example, this script works out, given a time in one timezone, what
> it was in another timezone:

What we need for that is the ability for AT TIME ZONE to specify a
DST-aware zone name.  Right now it can only take DST-ignorant zone
names.  So you can do
    ('2004-12-01 12:0:0' AT TIME ZONE 'AESST') AT TIME ZONE 'MEWT'
but not
    ('2004-12-01 12:0:0' AT TIME ZONE 'Australia/Sydney') AT TIME ZONE 'Europe/Amsterdam'
which of course is what you want.

The infrastructure needed for this is finally present in 8.0, ie we have
the timezone data available, but actually teaching AT TIME ZONE about it
didn't get done in time.  Likely it will appear in 8.1 (especially if
you step up and do the work ;-)).

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: when to use NULL and when to NOT NULL DEFAULT ''
Next
From: Phil Endecott
Date:
Subject: pg_restore -l and schema name