Re: BUG #5470: EXTRACT(epoch from ...) missing last digit - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5470: EXTRACT(epoch from ...) missing last digit
Date
Msg-id 10742.1274722027@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5470: EXTRACT(epoch from ...) missing last digit  ("Randy Solomonson" <pgsqlbugs@solomonson.com>)
List pgsql-bugs
"Randy Solomonson" <pgsqlbugs@solomonson.com> writes:
> When converting from Timestamp with Time zone to seconds since epoch, the
> last digit of the fraction of a second is missing.

The result of extract() is float8, so you can't really expect it to
have more than about 15 digits of precision.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Randy Solomonson"
Date:
Subject: BUG #5470: EXTRACT(epoch from ...) missing last digit
Next
From: Mark Kirkwood
Date:
Subject: xml data type implications of no =