]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Don't lose precision for float fields of Nodes.
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 26 Sep 2022 14:02:09 +0000 (16:02 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 26 Sep 2022 14:02:09 +0000 (16:02 +0200)
commitacd624644bc4f957824abcd00f6af27861b03a29
tree6017e9171f838541bba7e27bb2808a5bbf58de2e
parentc07785d458c1ca69ad7cd3ebb8f4a1d953c3779b
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
src/backend/nodes/gen_node_support.pl
src/backend/nodes/outfuncs.c