From: Bruce Momjian Date: Tue, 21 May 2019 20:31:02 +0000 (-0400) Subject: doc: adjust PG 12 relnotes item on float digit adjustment X-Git-Tag: REL_12_BETA2~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b84a801d6a6737e6d84326b77d98b498402ecad0;p=postgresql doc: adjust PG 12 relnotes item on float digit adjustment Discussion: https://postgr.es/m/87y330d8ty.fsf@news-spur.riddles.org.uk --- diff --git a/doc/src/sgml/release-12.sgml b/doc/src/sgml/release-12.sgml index 8529c6a261..51de9cac16 100644 --- a/doc/src/sgml/release-12.sgml +++ b/doc/src/sgml/release-12.sgml @@ -207,18 +207,16 @@ Author: Andrew Gierth --> - Avoid performing unnecessary rounding of REAL and DOUBLE - PRECISION values (Andrew Gierth) + Improve performance by changing the default number of trailing digits + output for REAL + and DOUBLE PRECISION values (Andrew Gierth) - This dramatically speeds up processing of floating-point - values but causes additional trailing digits to - potentially be displayed. Users wishing to have output - that is rounded to match the previous behavior can set extra_float_digits=0, - which is no longer the default. + Previously, float values were output rounded to 6 or 15 decimals + by default. Now, only the number of digits required to preserve + the exact binary value is output. The previous behavior can be + restored by setting to zero.