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

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't lose precision for float fields of Nodes.
Date: 2022-09-26 14:15:29
Message-ID: E1ocotM-0026PY-UL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/4159834(dot)1657405226(at)sss(dot)pgh(dot)pa(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-09-26 14:40:12 pgsql: Implement WRITE_READ_PARSE_PLAN_TREES for raw parse trees
Previous Message Peter Eisentraut 2022-09-26 13:57:30 pgsql: catversion bump