Re: Fix jsonpath .decimal() to honor silent mode

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Ewan Young <kdbase(dot)hack(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Subject: Re: Fix jsonpath .decimal() to honor silent mode
Date: 2026-07-01 10:31:39
Message-ID: akTsizSuKa6AKGTL@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Lepikhov 2026-07-01 10:42:53 Re: RFC: Logging plan of the running query
Previous Message Akshay Joshi 2026-07-01 10:31:10 Re: [PATCH] Add pg_get_policy_ddl() function to reconstruct CREATE POLICY statement