Re: Timestamp precission question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vaclav TVRDIK <tvrdik(at)i3(dot)cz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Timestamp precission question
Date: 2008-11-11 20:16:13
Message-ID: 11686.1226434573@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Vaclav TVRDIK <tvrdik(at)i3(dot)cz> writes:
> I have one question about converting timestamps to text. I believed
> that using to_char function with proper mask and casting by style
> COLUMN::text is equal, but when I issue following query against 8.3.3
> database it returns me different values (they differ on last position
> of microsecconds value, maybe rounding error ?).

Hm, I can't replicate that here --- but if you're using floating-point
timestamps, as is default in 8.3, then a certain amount of
machine-dependent roundoff fuzziness is not surprising.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-11-11 20:17:39 Re: Very slow queries w/ NOT IN preparation (seems like a bug, test case)
Previous Message Adriana Alfonzo 2008-11-11 19:56:28 Re: Timestamp precission question