pgsql: Error suppression support for upcoming jsonpath .datetime() meth - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Error suppression support for upcoming jsonpath .datetime() meth
Date
Msg-id E1iDDKf-0008VT-Q2@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Update expected output for dummy_index_am
Next
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Implement jsonpath .datetime() method