]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Mention extra_float_digits in floating point docs
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 2 Jul 2013 16:21:16 +0000 (12:21 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 2 Jul 2013 17:14:02 +0000 (13:14 -0400)
Make it easier for readers of the FP docs to find out about possibly
truncated values.

Per complaint from Tom Duffey in message
F0E0F874-C86F-48D1-AA2A-0C5365BF5118@trillitech.com

Author: Albe Laurenz
Reviewed by: Abhijit Menon-Sen

doc/src/sgml/config.sgml
doc/src/sgml/datatype.sgml

index 1e575b26605ea103ea828b84f5f3bdba0a0e05f0..4791eb124008d96e45728714e00f96b115e9c0ce 100644 (file)
@@ -4285,6 +4285,7 @@ SET XML OPTION { DOCUMENT | CONTENT };
         partially-significant digits; this is especially useful for dumping
         float data that needs to be restored exactly.  Or it can be set
         negative to suppress unwanted digits.
+        See also <xref linkend="datatype-float">.
        </para>
       </listitem>
      </varlistentry>
index b8dd8a5edced1f40ba2fe3d34bfd5443abc27c39..4ea2b8a3662dcd91d375db91a34f5e9121f2c1fa 100644 (file)
@@ -663,6 +663,17 @@ NUMERIC
      from zero will cause an underflow error.
     </para>
 
+    <note>
+     <para>
+      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 the same on every platform
+      supported by PostgreSQL.  Increasing it will produce output that
+      more accurately represents the stored value, but may be unportable.
+     </para>
+    </note>
+
     <indexterm>
      <primary>not a number</primary>
      <secondary>double precision</secondary>