Re: [HACKERS] 6.1 issues resolved - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] 6.1 issues resolved
Date
Msg-id c1bd49313ed4b8c058066273e400d8db
Whole thread Raw
In response to [HACKERS] 6.1 issues resolved  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
>
> At this point, I think we have everything resolved for 6.1.
>
> The regression tests look good.

Yes, but a small issue...

The horology "expected" patches Bruce applied just recently to fix the
timezone behavior for 3 rows of results from calculating
datetime-minus-timespan cause my regression test to fail, as you would
expect.

But looking into it further, I found the following behavior:

If you set TZ="PST8PDT" on my machine, you get Bruce's results.

If you set TZ="PST8PDT7,M04.01.00,M10.05.03" on my machine, you get my
original regression results!

Conclusions:
1) The public-domain localtime package used by _many_ systems has
signed-math trouble for timezones but only when interpreting a full TZ.

2) The PST8PDT timezone database supplied on many systems has the
correct information.

3) Bruce was not following the directions for the regression test :))
(or his USE_POSIX_TIME but !HAVE_INT_TIMEZONE machine does not exhibit
the bug, a more likely scenerio but it's more fun to needle Bruce...)

OK, so here is the question:
Should we assume that every installation environment has a PST8PDT
timezone database installed, or should we have the regression tests use
the full-length TZ assignment which produces a few bad-but-consistant
values on many/most platforms??

I'd be inclined to go with the bad-but-consistant solution, because a
failed regression test on a system without the problem is obviously
correct by inspection; that is not true the other way around.

I'll go either way, and can patch either the regression results or the
instructions to be self-consistant.

We should _especially_ hear from anyone who might have a problem with
the PST8PDT timezone database (e.g. Easter Europe or southern hemisphere
where the default rules are likely to be different).

            - Tom

------------------------------

pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: [HACKERS] Patch for psql.c
Next
From: PortSite
Date:
Subject: [HACKERS] Postgres collecting CPU seconds