Re: TIMESTAMP comparison problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TIMESTAMP comparison problem
Дата
Msg-id 3623.1201022013@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: TIMESTAMP comparison problem  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-sql
Michael Glaesemann <grzm@seespotcode.net> writes:
> 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.

There is more precision in there, but the output routine won't show it
to you.  I think the real issue in Stuart's example is that what's being
shown as .746349 is actually .7463494 or something like that.  Doing an
extract(epoch) on the stored values might be instructive.

If you don't want to deal with these sorts of issues then yeah, you want
integer timestamps.
        regards, tom lane


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

Предыдущее
От: Stuart Brooks
Дата:
Сообщение: Re: TIMESTAMP comparison problem
Следующее
От: Andreas Joseph Krogh
Дата:
Сообщение: ALTER TABLE DROP CONSTRAINT IF EXISTS ?