Re: Timezone matching script (win32)

Lists: pgsql-hackers
From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Timezone matching script (win32)
Date: 2010-04-13 12:09:16
Message-ID: m2z9837222c1004130509yb29757f0k34aeb676a5ffcc53@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I'm breaking this out to a separate email thread, since i think the
original question may hvae been lost in the "I've applied this patch"
part that made people ignore it at the end of a long thread ;) There
are usually people who have thoughts about this kind of thing :-) So,
thoughts/suggestions on location?

- cut -
I've applied the patch to add the missing timezone names.

Before I did that I wrote a small perlscript that reads pgtz.c and
compares what's there to what's in the registry of the current
machine. Turns out I had missed one, which is Argentina Standard Time.

This script should probably live in CVS, and be run when Microsoft
releases new timezone data. Where should I put it - src/timezone or
somewhere in src/tools? (it does read pgtz.c in the current directory,
but it doesn't actually edit the file - just outputs on stdout a list
of changes to be made to the file manually)

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


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-13 17:31:33
Message-ID: 20100413173133.GC2990@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander wrote:

> Before I did that I wrote a small perlscript that reads pgtz.c and
> compares what's there to what's in the registry of the current
> machine. Turns out I had missed one, which is Argentina Standard Time.
>
> This script should probably live in CVS, and be run when Microsoft
> releases new timezone data. Where should I put it - src/timezone or
> somewhere in src/tools? (it does read pgtz.c in the current directory,
> but it doesn't actually edit the file - just outputs on stdout a list
> of changes to be made to the file manually)

I think it should live in src/tools and be mentioned in
src/tools/RELEASE_CHANGES

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-13 17:55:39
Message-ID: 7220.1271181339@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Magnus Hagander wrote:
>> This script should probably live in CVS, and be run when Microsoft
>> releases new timezone data. Where should I put it - src/timezone or
>> somewhere in src/tools? (it does read pgtz.c in the current directory,
>> but it doesn't actually edit the file - just outputs on stdout a list
>> of changes to be made to the file manually)

> I think it should live in src/tools and be mentioned in
> src/tools/RELEASE_CHANGES

+1 for src/tools/, but the documentation note should probably be in
src/timezone/README. This task isn't especially coupled to release
times (at least not *our* release times). And it's definitely not
likely to happen at the times anyone would be consulting
RELEASE_CHANGES, because none of the release leadup work gets done
on Windows machines.

regards, tom lane


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-13 19:00:25
Message-ID: 20100413190025.GD2990@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Magnus Hagander wrote:
> >> This script should probably live in CVS, and be run when Microsoft
> >> releases new timezone data. Where should I put it - src/timezone or
> >> somewhere in src/tools? (it does read pgtz.c in the current directory,
> >> but it doesn't actually edit the file - just outputs on stdout a list
> >> of changes to be made to the file manually)
>
> > I think it should live in src/tools and be mentioned in
> > src/tools/RELEASE_CHANGES
>
> +1 for src/tools/, but the documentation note should probably be in
> src/timezone/README. This task isn't especially coupled to release
> times (at least not *our* release times). And it's definitely not
> likely to happen at the times anyone would be consulting
> RELEASE_CHANGES, because none of the release leadup work gets done
> on Windows machines.

True, but if there's a www.microsoft.com URL that could be checked for
timezone updates, perhaps we don't need a Windows machine. In any case,
perhaps whoever does the release work can *ask* someone else to provide
the Windows TZ patch.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-14 13:41:51
Message-ID: s2l9837222c1004140641y4518053bqf33e9dd230604c0f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Apr 13, 2010 at 9:00 PM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> Tom Lane wrote:
>> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
>> > Magnus Hagander wrote:
>> >> This script should probably live in CVS, and be run when Microsoft
>> >> releases new timezone data. Where should I put it - src/timezone or
>> >> somewhere in src/tools? (it does read pgtz.c in the current directory,
>> >> but it doesn't actually edit the file - just outputs on stdout a list
>> >> of changes to be made to the file manually)
>>
>> > I think it should live in src/tools and be mentioned in
>> > src/tools/RELEASE_CHANGES
>>
>> +1 for src/tools/, but the documentation note should probably be in
>> src/timezone/README.  This task isn't especially coupled to release
>> times (at least not *our* release times).  And it's definitely not
>> likely to happen at the times anyone would be consulting
>> RELEASE_CHANGES, because none of the release leadup work gets done
>> on Windows machines.
>
> True, but if there's a www.microsoft.com URL that could be checked for
> timezone updates, perhaps we don't need a Windows machine.  In any case,

Funny guy. There isn't, of course.

> perhaps whoever does the release work can *ask* someone else to provide
> the Windows TZ patch.

Yeah, that's what we'll need done.

How about we put it in RELEASE_CHANGES for major releases with
something like "if a major windows update has been released, run ...
"?

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


From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-14 15:18:57
Message-ID: 4BC5DCE1.3040700@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander wrote:
> On Tue, Apr 13, 2010 at 9:00 PM, Alvaro Herrera
> <alvherre(at)commandprompt(dot)com> wrote:
>> Tom Lane wrote:
>>> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
>>>> Magnus Hagander wrote:
>>>>> This script should probably live in CVS, and be run when Microsoft
>>>>> releases new timezone data. Where should I put it - src/timezone or
>>>>> somewhere in src/tools? (it does read pgtz.c in the current directory,
>>>>> but it doesn't actually edit the file - just outputs on stdout a list
>>>>> of changes to be made to the file manually)
>>>> I think it should live in src/tools and be mentioned in
>>>> src/tools/RELEASE_CHANGES
>>> +1 for src/tools/, but the documentation note should probably be in
>>> src/timezone/README. This task isn't especially coupled to release
>>> times (at least not *our* release times). And it's definitely not
>>> likely to happen at the times anyone would be consulting
>>> RELEASE_CHANGES, because none of the release leadup work gets done
>>> on Windows machines.
>> True, but if there's a www.microsoft.com URL that could be checked for
>> timezone updates, perhaps we don't need a Windows machine. In any case,
>
> Funny guy. There isn't, of course.
>
>> perhaps whoever does the release work can *ask* someone else to provide
>> the Windows TZ patch.
>
> Yeah, that's what we'll need done.
>
> How about we put it in RELEASE_CHANGES for major releases with
> something like "if a major windows update has been released, run ...
> "?

is this really just relevant for major releases or is there a chance
that MS adds stuff like that in patches or servicepacks as well?

Stefan


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-14 15:29:45
Message-ID: n2z9837222c1004140829na97d2e0dvdd9c35b2fdd7c369@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Apr 14, 2010 at 5:18 PM, Stefan Kaltenbrunner
<stefan(at)kaltenbrunner(dot)cc> wrote:
> Magnus Hagander wrote:
>>
>> On Tue, Apr 13, 2010 at 9:00 PM, Alvaro Herrera
>> <alvherre(at)commandprompt(dot)com> wrote:
>>>
>>> Tom Lane wrote:
>>>>
>>>> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
>>>>>
>>>>> Magnus Hagander wrote:
>>>>>>
>>>>>> This script should probably live in CVS, and be run when Microsoft
>>>>>> releases new timezone data. Where should I put it - src/timezone or
>>>>>> somewhere in src/tools? (it does read pgtz.c in the current directory,
>>>>>> but it doesn't actually edit the file - just outputs on stdout a list
>>>>>> of changes to be made to the file manually)
>>>>>
>>>>> I think it should live in src/tools and be mentioned in
>>>>> src/tools/RELEASE_CHANGES
>>>>
>>>> +1 for src/tools/, but the documentation note should probably be in
>>>> src/timezone/README.  This task isn't especially coupled to release
>>>> times (at least not *our* release times).  And it's definitely not
>>>> likely to happen at the times anyone would be consulting
>>>> RELEASE_CHANGES, because none of the release leadup work gets done
>>>> on Windows machines.
>>>
>>> True, but if there's a www.microsoft.com URL that could be checked for
>>> timezone updates, perhaps we don't need a Windows machine.  In any case,
>>
>> Funny guy. There isn't, of course.
>>
>>> perhaps whoever does the release work can *ask* someone else to provide
>>> the Windows TZ patch.
>>
>> Yeah, that's what we'll need done.
>>
>> How about we put it in RELEASE_CHANGES for major releases with
>> something like "if a major windows update has been released, run ...
>> "?
>
> is this really just relevant for major releases or is there a chance that MS adds stuff like that in patches or servicepacks as well?

I'd expect servicepacks at least are relevant, but they *are* fairly
major releases...

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


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-14 15:46:44
Message-ID: 20100414154644.GB3678@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander wrote:
> On Wed, Apr 14, 2010 at 5:18 PM, Stefan Kaltenbrunner
> <stefan(at)kaltenbrunner(dot)cc> wrote:
> > Magnus Hagander wrote:

> >> How about we put it in RELEASE_CHANGES for major releases with
> >> something like "if a major windows update has been released, run ...
> >> "?
> >
> > is this really just relevant for major releases or is there a chance that MS adds stuff like that in patches or servicepacks as well?
>
> I'd expect servicepacks at least are relevant, but they *are* fairly
> major releases...

I thought you meant stuff like "windows 2007" vs. "windows xp" or such.
If SPs are considered major too, then it seems reasonable.

Doesn't microsoft have a monthly update policy or something? Those are
not SPs though, right?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-14 16:01:52
Message-ID: x2n9837222c1004140901ke2d02541s6118c21018cb8dc5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Apr 14, 2010 at 5:46 PM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> Magnus Hagander wrote:
>> On Wed, Apr 14, 2010 at 5:18 PM, Stefan Kaltenbrunner
>> <stefan(at)kaltenbrunner(dot)cc> wrote:
>> > Magnus Hagander wrote:
>
>> >> How about we put it in RELEASE_CHANGES for major releases with
>> >> something like "if a major windows update has been released, run ...
>> >> "?
>> >
>> > is this really just relevant for major releases or is there a chance that MS adds stuff like that in patches or servicepacks as well?
>>
>> I'd expect servicepacks at least are relevant, but they *are* fairly
>> major releases...
>
> I thought you meant stuff like "windows 2007" vs. "windows xp" or such.
> If SPs are considered major too, then it seems reasonable.
>
> Doesn't microsoft have a monthly update policy or something?  Those are
> not SPs though, right?

Those are hotfixes. They are not servicepacks. I doubt they'd touch
this stuff, unless they're specifically hotfixes for timezone
information. They do have those, but nowhere near as frequent as we do
TZ updates (probably because they keep a lot less data about their
timezones)

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


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone matching script (win32)
Date: 2010-04-15 11:01:52
Message-ID: p2k9837222c1004150401t300827c9z38e6d7c87a362b1f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Apr 13, 2010 at 7:55 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
>> Magnus Hagander wrote:
>>> This script should probably live in CVS, and be run when Microsoft
>>> releases new timezone data. Where should I put it - src/timezone or
>>> somewhere in src/tools? (it does read pgtz.c in the current directory,
>>> but it doesn't actually edit the file - just outputs on stdout a list
>>> of changes to be made to the file manually)
>
>> I think it should live in src/tools and be mentioned in
>> src/tools/RELEASE_CHANGES
>
> +1 for src/tools/, but the documentation note should probably be in
> src/timezone/README.  This task isn't especially coupled to release
> times (at least not *our* release times).  And it's definitely not
> likely to happen at the times anyone would be consulting
> RELEASE_CHANGES, because none of the release leadup work gets done
> on Windows machines.

I've applied the script with a small change to both the README and the
RELEASE_CHANGES files. Feel free to adjust that if you feel it's
wrong.

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