Re: BUG #4523: TO_CHAR function : the ".US" format returns incorrect value

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Moussard" <evelyne(dot)moussard(at)cartes-bancaires(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4523: TO_CHAR function : the ".US" format returns incorrect value
Date: 2008-11-12 16:09:21
Message-ID: 16976.1226506161@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Moussard" <evelyne(dot)moussard(at)cartes-bancaires(dot)com> writes:
> Using the "TO_CHAR" function, the ".US" format doesn't display the correct
> value for the microseconds part of a timestamp value.

If you're using floating-point timestamps, this isn't a bug --- it's
just inevitable platform-specific roundoff error. The particular test
case works as expected on the two machines I tried it on, but that
doesn't prove much of anything.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Hiroshi Saito 2008-11-12 16:15:28 Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not unique on Windows
Previous Message Hiroshi Saito 2008-11-12 16:07:26 Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not unique on Windows