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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Don't lose precision for float fields of Nodes.
Дата
Msg-id E1ocotM-0026PY-UL@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: catversion bump
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Enable WRITE_READ_PARSE_PLAN_TREES of rewritten utility statemen