Re: Fix jsonpath .decimal() to honor silent mode - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Fix jsonpath .decimal() to honor silent mode
Date
Msg-id akTsizSuKa6AKGTL@paquier.xyz
Whole thread
In response to Fix jsonpath .decimal() to honor silent mode  (Ewan Young <kdbase.hack@gmail.com>)
Responses Re: Fix jsonpath .decimal() to honor silent mode
List pgsql-hackers
On Wed, Jul 01, 2026 at 03:52:51PM +0800, Ewan Young wrote:
> If reviewers would rather push the ErrorSaveContext down into
> numerictypmodin() (or a shared helper)
> instead of pre-validating in the caller, I'm happy to reshape it that way.

My first impression while looking at your patch and the surroundings
of numeric.c is that we should do exactly that, and feed from the
error message received from the new function to which an escontext is
given.  That would save in extra error messages (why not just reuse
the same errstrings in this case?), and we could rely on
error_occurred for the detection.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: [PATCH] Add pg_get_policy_ddl() function to reconstruct CREATE POLICY statement
Next
From: Andrei Lepikhov
Date:
Subject: Re: RFC: Logging plan of the running query