pgsql: Error suppression support for upcoming jsonpath .datetime() meth

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Error suppression support for upcoming jsonpath .datetime() meth
Date: 2019-09-25 19:52:13
Message-ID: E1iDDKf-0008VT-Q2@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2019-09-25 21:05:58 Re: pgsql: Implement jsonpath .datetime() method
Previous Message Alvaro Herrera 2019-09-25 19:20:57 pgsql: Update expected output for dummy_index_am