Re: TIMESTAMP comparison problem

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: TIMESTAMP comparison problem
Дата
Msg-id 794E6600-42A8-41A2-822D-080E19F9F0CC@seespotcode.net
обсуждение исходный текст
Ответ на TIMESTAMP comparison problem  (Stuart Brooks <stuartb@cat.co.za>)
Ответы Re: TIMESTAMP comparison problem  (Stuart Brooks <stuartb@cat.co.za>)
Re: TIMESTAMP comparison problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Jan 22, 2008, at 3:05 , Stuart Brooks wrote:

> If I reduce the precision to 3 for the timestamps it appears to  
> work although it makes me nervous.

With float timestamps, you're fooling yourself if you think those  
numbers past the decimal are reliable.

> Should I just recompile to use integer datetimes? I would like to  
> have at least microsecond precision.

Well, you can't get better than microsecond precision with timestamps  
in Postgres. And the only way you can rely on that level of precision  
is to compile with --enable-integer-datetimes.

Michael Glaesemann
grzm seespotcode net




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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: currval() within one statement
Следующее
От: Stuart Brooks
Дата:
Сообщение: Re: TIMESTAMP comparison problem