Re: patch for 60 seconds bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: patch for 60 seconds bug
Дата
Msg-id 7786.997933435@sss.pgh.pa.us
обсуждение исходный текст
Ответ на patch for 60 seconds bug  (Joseph Shraibman <jks@selectacast.net>)
Список pgsql-patches
Joseph Shraibman <jks@selectacast.net> writes:
> This patch fixes the problem of doing:
> select '2001-08-15 23:59:59.996'::timestamp;

This seems the hardest possible way to do it.  What I suggested awhile
back was to round the timestamp value to two fractional digits before
disassembling it into y/m/d/h/m/s, which'd take only something like

    foo = rint(foo * 100.0) / 100.0;

at the right place.  Thomas didn't like that, for reasons that I do not
recall offhand, and nothing's been done since.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: Proposal for encrypting pg_shadow passwords
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: Proposal for encrypting pg_shadow passwords