From: | David Rowley <drowley(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix overly strict Assert in jsonpath code |
Date: | 2023-08-01 13:45:21 |
Message-ID: | E1qQpge-0008jl-4l@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix overly strict Assert in jsonpath code
This was failing for queries which try to get the .type() of a
jpiLikeRegex. For example:
select jsonb_path_query('["string", "string"]',
'($[0] like_regex ".{7}").type()');
Reported-by: Alexander Kozhemyakin
Bug: #18035
Discussion: https://postgr.es/m/18035-64af5cdcb5adf2a9@postgresql.org
Backpatch-through: 12, where SQL/JSON path was added.
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/668990980f15e204abad3ed015466514483ab7ab
Modified Files
--------------
src/backend/utils/adt/jsonpath.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2023-08-01 14:51:10 | Re: pgsql: Fix search_path to a safe value during maintenance operations. |
Previous Message | David Rowley | 2023-08-01 13:42:27 | pgsql: Fix overly strict Assert in jsonpath code |