pgsql: Numeric error suppression in jsonpath - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Numeric error suppression in jsonpath
Date
Msg-id E1h55Vy-00034x-Mj@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Numeric error suppression in jsonpath

Add support of numeric error suppression to jsonpath as it's required by
standard.  This commit doesn't use PG_TRY()/PG_CATCH() in order to implement
that.  Instead, it provides internal versions of numeric functions used, which
support error suppression.

Discussion: https://postgr.es/m/fcc6fc6a-b497-f39a-923d-aa34d0c588e8%402ndQuadrant.com
Author: Alexander Korotkov, Nikita Glukhov
Reviewed-by: Tomas Vondra

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16d489b0fe058e527619f5e9d92fd7ca3c6c2994

Modified Files
--------------
doc/src/sgml/func.sgml                       |   2 +-
src/backend/utils/adt/float.c                |  68 ++++++--
src/backend/utils/adt/jsonpath_exec.c        |  78 ++++++---
src/backend/utils/adt/numeric.c              | 252 ++++++++++++++++++++++-----
src/include/utils/float.h                    |   3 +
src/include/utils/numeric.h                  |  12 ++
src/test/regress/expected/jsonb_jsonpath.out |  35 +++-
7 files changed, 353 insertions(+), 97 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Avoid casting away a const
Next
From: Amit Kapila
Date:
Subject: pgsql: Update copyright year in files added by 1bb5e78218.