pgsql: Don't lose precision for float fields of Nodes. - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Don't lose precision for float fields of Nodes.
Date
Msg-id E1ocotM-0026PY-UL@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Don't lose precision for float fields of Nodes.

Historically we've been more worried about making the output of
float fields look pretty than whether they'd be read back exactly.
That won't work if we're to compare the read-back nodes for
equality, so switch to using the Ryu code for float output.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/4159834.1657405226@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/acd624644bc4f957824abcd00f6af27861b03a29

Modified Files
--------------
src/backend/nodes/gen_node_support.pl | 12 ++++++------
src/backend/nodes/outfuncs.c          | 23 +++++++++++++++++++----
2 files changed, 25 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: catversion bump
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Enable WRITE_READ_PARSE_PLAN_TREES of rewritten utility statemen