pgsql: Don't lose precision for float fields of Nodes.

Started by Peter Eisentrautabout 4 years ago1 messagescommitters
Jump to latest
#1Peter Eisentraut
peter@eisentraut.org

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: /messages/by-id/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(-)