From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | postgres(at)saparev(dot)com, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #1927: incorrect timestamp returned |
Date: | 2005-10-04 15:38:30 |
Message-ID: | 8727.1128440310@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-patches |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Right. We allow leap seconds for any date/time. Are you saying we
> should only allow them for certain dates/times?
No, his point is the funny roundoff behavior.
regression=# select timestamp '2005-09-23 23:59:59.999999';
timestamp
----------------------------
2005-09-23 23:59:59.999999
(1 row)
regression=# select timestamp '2005-09-23 23:59:59.9999999';
timestamp
------------------------
2005-09-23 23:59:60.00
(1 row)
regression=# select timestamp '2005-09-23 23:59:59.99999999';
timestamp
---------------------
2005-09-24 00:00:00
(1 row)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-10-04 15:47:37 | Re: BUG #1927: incorrect timestamp returned |
Previous Message | Bruce Momjian | 2005-10-04 15:24:15 | Re: BUG #1927: incorrect timestamp returned |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-10-04 15:47:37 | Re: BUG #1927: incorrect timestamp returned |
Previous Message | Bruce Momjian | 2005-10-04 15:24:15 | Re: BUG #1927: incorrect timestamp returned |