Re: BUG #1927: incorrect timestamp returned

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1927: incorrect timestamp returned
Дата
Msg-id 8727.1128440310@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #1927: incorrect timestamp returned  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
Bruce Momjian <pgman@candle.pha.pa.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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #1927: incorrect timestamp returned
Следующее
От: "Jean-Pierre Pelletier"
Дата:
Сообщение: Possibly corrupted shared memory, PostgreSQL 8.1 beta2, Windows 2000