From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Error suppression support for upcoming jsonpath .datetime() meth
Date: Wed, 25 Sep 2019 19:52:13 +0000
Message-ID: <E1iDDKf-0008VT-Q2@gemulon.postgresql.org> (raw)
Error suppression support for upcoming jsonpath .datetime() method
Add support of error suppression in some date and time manipulation functions
as it's required for jsonpath .datetime() method support. This commit doesn't
use PG_TRY()/PG_CATCH() in order to implement that. Instead, it provides
internal versions of date and time functions used, which support error
suppression.
Discussion: https://postgr.es/m/CAPpHfdsZgYEra_PeCLGNoXOWYx6iU-S3wF8aX0ObQUcZU%2B4XTw%40mail.gmail.com
Author: Alexander Korotkov, Nikita Glukhov
Reviewed-by: Anastasia Lubennikova, Peter Eisentraut
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5bc450629b31a0b6986e668056d5bd36792412d2
Modified Files
--------------
src/backend/utils/adt/date.c | 86 ++++--
src/backend/utils/adt/formatting.c | 537 ++++++++++++++++++++++++-------------
src/backend/utils/adt/timestamp.c | 66 +++--
src/include/utils/date.h | 2 +
src/include/utils/datetime.h | 2 +
src/include/utils/formatting.h | 3 +-
src/include/utils/timestamp.h | 3 +
7 files changed, 479 insertions(+), 220 deletions(-)
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: Error suppression support for upcoming jsonpath .datetime() meth
In-Reply-To: <E1iDDKf-0008VT-Q2@gemulon.postgresql.org>
References: <E1iDDKf-0008VT-Q2@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