Re: [pgsql-hackers-win32] Weird new time zone - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: [pgsql-hackers-win32] Weird new time zone
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE34BE8B@algol.sollentuna.se
Whole thread Raw
Responses Re: [pgsql-hackers-win32] Weird new time zone
Re: [pgsql-hackers-win32] Weird new time zone
List pgsql-hackers
> >> I thought the issue under question was to find out what
> the time zone
> >> was.
>
> > Nope, we already had that. The issue is that the names are not the
> > same as the one used in zic/unix, so there is nothing to match on.
>
> Right.  The problem we are actually faced with is to identify
> which of the zic timezones is the best match for the system's
> timezone setting.
> One of the issues is that it's not clear what "best" means...
>
> At the moment I like Oliver Jowett's idea of defining "best"
> as "the one that matches furthest back".

Sounds reasonable to me. As long as a clear warning is put in the log
whenever something is picked that is not a perfect match, so the admin
is directed at the potential problem and can fix it (by setting the GUC
timezone variable).

"Most apps" are probably going to deal with datetimes starting a couple
of years back and going into the future. In these cases it doesn't even
matter. Certainly not all, though.

//Magnus



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Point in Time Recovery
Next
From: Bruce Momjian
Date:
Subject: Re: serverlog rotation/functions