Abhijit Menon-Sen wrote:
> 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 a floating point
>     value is converted to text for output. With the default value of
>     <literal>0</literal>, the output is portable to every platform
>     supported by PostgreSQL. Increasing it will produce output that
>     is closer to the stored value, but may be unportable.
> 
> It's a pretty generic sort of warning, but maybe it would help?

If I understood the original complaint right, anything that gives you
a hint that the textual representation is "truncated" would be helpful.

I like your suggestion and elaborated it a little.

What do you think of the attached version?

Yours,
Laurenz Albe

Attachment: float-3.patch
Description: float-3.patch

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to