Re: TIMESTAMP comparison problem - Mailing list pgsql-sql

From Tom Lane
Subject Re: TIMESTAMP comparison problem
Date
Msg-id 3623.1201022013@sss.pgh.pa.us
Whole thread Raw
In response to Re: TIMESTAMP comparison problem  (Michael Glaesemann <grzm@seespotcode.net>)
List 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 by date:

Previous
From: Stuart Brooks
Date:
Subject: Re: TIMESTAMP comparison problem
Next
From: Andreas Joseph Krogh
Date:
Subject: ALTER TABLE DROP CONSTRAINT IF EXISTS ?