pgsql: Add numeric_int8_opt_error() to optionally suppress errors

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add numeric_int8_opt_error() to optionally suppress errors
Date: 2024-01-03 09:27:09
Message-ID: E1rKxWn-00DFpS-Cp@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add numeric_int8_opt_error() to optionally suppress errors

This matches the existing numeric_int4_opt_error() (see commit
16d489b0fe). It will be used by a future JSON-related patch, which
wants to report errors in its own way and thus does not want the
internal functions to throw any error.

Author: Jeevan Chalke <jeevan(dot)chalke(at)enterprisedb(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CAM2+6=XjTyqrrqHAOj80r0wVQxJSxc0iyib9bPC55uFO9VKatg(at)mail(dot)gmail(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c1b9e1e56d8c11a00869766a02de537d349586cd

Modified Files
--------------
src/backend/utils/adt/numeric.c | 59 ++++++++++++++++++++++++++++++-----------
src/include/utils/numeric.h | 1 +
2 files changed, 44 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-01-03 10:49:20 pgsql: Reorganise jsonpath operators and methods
Previous Message Peter Eisentraut 2024-01-03 08:04:56 pgsql: Refactor: separate function to find all objects depending on a c