Re: [HACKERS] We're not lax enough about maximum time zone offset from UTC

2012-08-30 Thread Bruce Momjian
On Wed, May 30, 2012 at 06:10:12PM -0400, Tom Lane wrote: Currently, our datetime input code thinks that any UTC offset of more than 14:59:59 either way from Greenwich must be a mistake. However, after seeing Patric Bechtel's recent bug report, I went trolling in the Olson timezone files to

Re: [HACKERS] We're not lax enough about maximum time zone offset from UTC

2012-08-30 Thread Tom Lane
Bruce Momjian br...@momjian.us writes: On Wed, May 30, 2012 at 06:10:12PM -0400, Tom Lane wrote: However, as pointed out by Patric, if you dump and restore an old timestamptz value in one of these zones, it will fail to restore because of the sanity check. I think therefore that we'd better

Re: [HACKERS] We're not lax enough about maximum time zone offset from UTC

2012-08-30 Thread Bruce Momjian
On Thu, Aug 30, 2012 at 04:51:02PM -0400, Tom Lane wrote: Bruce Momjian br...@momjian.us writes: On Wed, May 30, 2012 at 06:10:12PM -0400, Tom Lane wrote: However, as pointed out by Patric, if you dump and restore an old timestamptz value in one of these zones, it will fail to restore

[HACKERS] We're not lax enough about maximum time zone offset from UTC

2012-05-30 Thread Tom Lane
Currently, our datetime input code thinks that any UTC offset of more than 14:59:59 either way from Greenwich must be a mistake. However, after seeing Patric Bechtel's recent bug report, I went trolling in the Olson timezone files to see what are the largest offsets used there. I found three

Re: [HACKERS] We're not lax enough about maximum time zone offset from UTC

2012-05-30 Thread David E. Wheeler
On May 30, 2012, at 3:10 PM, Tom Lane wrote: However, as pointed out by Patric, if you dump and restore an old timestamptz value in one of these zones, it will fail to restore because of the sanity check. I think therefore that we'd better enlarge the allowed range to 15:59:59 either way.

Re: [HACKERS] We're not lax enough about maximum time zone offset from UTC

2012-05-30 Thread Tom Lane
David E. Wheeler da...@justatheory.com writes: On May 30, 2012, at 3:10 PM, Tom Lane wrote: However, as pointed out by Patric, if you dump and restore an old timestamptz value in one of these zones, it will fail to restore because of the sanity check. I think therefore that we'd better