Re: Win32 timezone matching - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Win32 timezone matching
Date
Msg-id k2z9837222c1004070331k7756ca19q3323aa1afdee69d2@mail.gmail.com
Whole thread Raw
In response to Re: Win32 timezone matching  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Win32 timezone matching  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
List pgsql-hackers
On Wed, Apr 7, 2010 at 00:48, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> On Wed, Apr 7, 2010 at 00:02, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> Oh, another thought here: what is the effect of the combination of this
>>> with your other proposal to add more timezones to the list?
>
>> [ none ]
>
> Ah, right, I hadn't looked closely at the logic before.  Still have
> two comments though:
>
> * There are other error conditions that cause "break"s in that loop.
> Should we change the others?

The only other error condition is if we find a key but can't open it.
That indicates something that's *seriously* wrong, so I'm inclined to
keep that one. The other two break statements are actually for when we
*find* a match, so they just indicate that we pick the first match
that we find.

> * There is a comment at the head of win32_tzmap[] explaining where the
> data came from; you need to update that.

Right.


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [BUGS] BUG #5394: invalid declspec for PG_MODULE_MAGIC
Next
From: Simon Riggs
Date:
Subject: Thoughts on pg_hba.conf rejection