Re: Refactoring: Use soft error reporting for *_opt_error functions - Mailing list pgsql-hackers

From jian he
Subject Re: Refactoring: Use soft error reporting for *_opt_error functions
Date
Msg-id CACJufxFQFdEYfi9edi_dm7A_JJX4rH5_Pn=Kk2NJM_h5M6p-Uw@mail.gmail.com
Whole thread Raw
In response to Re: Refactoring: Use soft error reporting for *_opt_error functions  (Amul Sul <sulamul@gmail.com>)
Responses Re: Refactoring: Use soft error reporting for *_opt_error functions
List pgsql-hackers
On Wed, Sep 3, 2025 at 7:52 PM Amul Sul <sulamul@gmail.com> wrote:
>

--- a/src/include/utils/numeric.h
+++ b/src/include/utils/numeric.h
-extern int32 numeric_int4_opt_error(Numeric num, bool *have_error);
.....
+extern int32 numeric_int4_safe(Numeric num, Node *escontext);

would any extensions using these functions (such as
numeric_int4_opt_error) may encounter upgrade compatibility issues in
the future?



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: expand virtual generated columns in get_relation_constraints()
Next
From: Tom Lane
Date:
Subject: Re: Solaris compiler status