Re: SQL/JSON revisited

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: Erik Rijkers <er(at)xs4all(dot)nl>
Cc: vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>, e(dot)indrupskaya(at)postgrespro(dot)ru
Subject: Re: SQL/JSON revisited
Date: 2023-02-21 03:09:15
Message-ID: CA+HiwqG=PNFW_ccu5D0LmTiz+3dw7VS_qEAjgFQHYxLr_SnZwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Feb 20, 2023 at 11:41 PM Erik Rijkers <er(at)xs4all(dot)nl> wrote:
> Op 20-02-2023 om 08:35 schreef Amit Langote:
> > Rebased again over queryjumble overhaul.
> But the following statement is a problem. It does not crash but it goes
> off, half-freezing the machine, and only comes back after fanatic
> Ctrl-C'ing.
>
> select json_query(jsonb '[3,4]', '$[*]' returning bigint[] empty object
> on error);
>
> Can you have a look?

Thanks for the test case. It caused ExecInterpExpr() to enter an
infinite loop, which I've fixed in the attached updated version. I've
also merged Elena's documentation changes; I can see that
<replaceable> is more correct.

Now looking at Andres' comments, though, posting a version containing
a fix for the above case so Erik may continue the testing in the
meantime.

--
Thanks, Amit Langote
EDB: http://www.enterprisedb.com

Attachment Content-Type Size
v5-0007-PLAN-clauses-for-JSON_TABLE.patch application/octet-stream 70.7 KB
v5-0009-Claim-SQL-standard-compliance-for-SQL-JSON-featur.patch application/octet-stream 2.8 KB
v5-0010-Proposed-reworking-of-SQL-JSON-documentaion.patch application/octet-stream 30.9 KB
v5-0008-Documentation-for-SQL-JSON-features.patch application/octet-stream 47.7 KB
v5-0006-JSON_TABLE.patch application/octet-stream 98.7 KB
v5-0005-RETURNING-clause-for-JSON-and-JSON_SCALAR.patch application/octet-stream 10.2 KB
v5-0002-IS-JSON-predicate.patch application/octet-stream 42.9 KB
v5-0003-SQL-JSON-query-functions.patch application/octet-stream 196.0 KB
v5-0004-SQL-JSON-functions.patch application/octet-stream 52.0 KB
v5-0001-SQL-JSON-constructors.patch application/octet-stream 157.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2023-02-21 03:14:02 Allow ordered partition scans in more cases
Previous Message Kyotaro Horiguchi 2023-02-21 03:00:32 Re: Add WAL read stats to pg_stat_wal