From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Antti Haapala <antti(dot)haapala(at)iki(dot)fi> |
Cc: | "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: timestamps and dates |
Date: | 2003-04-29 13:56:42 |
Message-ID: | 26194.1051624602@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Antti Haapala <antti(dot)haapala(at)iki(dot)fi> writes:
>> So zones in 'right' folder have leap second support on. The difference is
>> correct - 22 (i had it wrong before), the number of leap seconds inserted
>> since UTC Epoch on 1 Jan 1972.
Yeah. That's the second report we've had of systems running in a
leap-second zone by default. I think it would be a good idea for
Postgres to check for this situation and complain. But how strongly
should it complain? Refuse to start up? Adopt GMT instead? What if
asking for GMT gets a leap-second zone?
> ilmo=# select '1998-31-12 23:59:60 UTC'::timestamp with time zone;
> ERROR: Bad timestamp external representation '1998-31-12 23:59:60 UTC'
> My timestamp surely is legal according to ISO-8601.
That's a good point. We got complaints about this all the time back
when we had roundoff problems in that code, but no one ever stopped to
point out that such a timestamp actually is legal per spec. (Strictly
speaking I think :60 should only be accepted at points where there
actually was a leap second, but we're not gonna check for that...)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Eckermann | 2003-04-29 13:59:51 | Re: Fwd: Re: Selecting the most recent date |
Previous Message | Oliver Elphick | 2003-04-29 13:46:29 | Re: Importing from Access 2000? |