Re: Problem migrating dump to latest CVS snapshot.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem migrating dump to latest CVS snapshot.
Дата
Msg-id 15737.985315963@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem migrating dump to latest CVS snapshot.  (Gunnar R|nning <gunnar@candleweb.no>)
Список pgsql-general
Gunnar R|nning <gunnar@candleweb.no> writes:
> Seems you hit the nail with your theory :

> sf-ng=# select date_part('seconds', a_accesstime) from access_log where
> a_accesstime > '2000-10-24 15:14:59' limit 1;
>  date_part
> -----------
>     59.997
> (1 row)

Ah-hah.  And we print that with a "%.2f" sort of format, so it rounds
off to 60.00.  Even in IEEE arithmetic ;-)

I've suggested before that timestamp output should round the timestamp
value to two fractional digits *before* breaking it down into year/
month/etc.  Seems like this is a perfect example of the necessity
for that.  Thomas, what say you?

            regards, tom lane

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Foreign keys/unique values and views
Следующее
От: "datactrl"
Дата:
Сообщение: psql slow connection