Re: [GENERAL] Floating point error - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject Re: [GENERAL] Floating point error
Date
Msg-id 20130624061636.GA1946@toroid.org
Whole thread Raw
In response to Re: [GENERAL] Floating point error  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Responses Re: [GENERAL] Floating point error
List pgsql-hackers
At 2013-03-06 10:04:25 +0000, laurenz.albe@wien.gv.at wrote:
>
> How about this elaboration?

Sorry to nitpick, but I don't like that either, on the grounds that if I
had been in Tom Duffey's place, this addition to the docs wouldn't help
me to understand and resolve the problem.

I'm not entirely convinced that any brief mention of extra_float_digits
would suffice, but here's a proposed rewording:
   The <xref linkend="guc-extra-float-digits"> setting controls the   number of extra significant digits included when
afloating point   value is converted to text for output. With the default value of   <literal>0</literal>, the output
isportable to every platform   supported by PostgreSQL. Increasing it will produce output that   is closer to the
storedvalue, but may be unportable.
 

It's a pretty generic sort of warning, but maybe it would help?

(I'm marking this "Waiting on author" in the CF.)

-- Abhijit



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Reduce maximum error in tuples estimation after vacuum.
Next
From: Andres Freund
Date:
Subject: Re: Clean switchover