public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: [email protected] <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: BUG #19454: PL/pgSQL mishandling jsonb attribute reference
Date: Mon, 13 Apr 2026 07:10:29 -0700
Message-ID: <CAKFQuwak==1Pt12Bo571YCgKJ5wyV6RakSQeYdazLo4q+JDMkA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Sunday, April 12, 2026, PG Bug reporting form <[email protected]>
wrote:
> The following bug has been logged on the website:
>
> Bug reference: 19454
> Logged by: CN Liou
> Email address: [email protected]
> PostgreSQL version: 18.3
> Operating system: Linux Debian Bookworm
> Description:
>
> v_payload := v_payload || tj->'delta'; -- The problematic line
> --v_payload := (SELECT v_payload || (tj->'delta')); --This avoids
> the issue.
>
I’m not following. The problematic line above is indeed annoying but it’s
not a bug. Operator precedence is behaving as documented. The second line
(wrapping tj->’delta’ with parentheses) is simply the necessary way to
write many expressions involving the “->”-like json[b] operators.
David J.
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: BUG #19454: PL/pgSQL mishandling jsonb attribute reference
In-Reply-To: <CAKFQuwak==1Pt12Bo571YCgKJ5wyV6RakSQeYdazLo4q+JDMkA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox