From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Numeric error suppression in jsonpath |
Date: | 2019-03-16 09:22:02 |
Message-ID: | E1h55Vy-00034x-Mj@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2019-03-16 10:33:33 | pgsql: Update copyright year in files added by 1bb5e78218. |
Previous Message | Peter Eisentraut | 2019-03-16 09:14:57 | pgsql: Avoid casting away a const |