pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Numeric error suppression in jsonpath
Date: Sat, 16 Mar 2019 09:22:02 +0000
Message-ID: <E1h55Vy-00034x-Mj@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1h55Vy-00034x-Mj@gemulon.postgresql.org>
Permalink:  ../E1h55Vy-00034x-Mj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h55Vy-00034x-Mj@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org
  Subject: Re: pgsql: Numeric error suppression in jsonpath
  In-Reply-To: <E1h55Vy-00034x-Mj@gemulon.postgresql.org>
  References: <E1h55Vy-00034x-Mj@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox