pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedJSON: @@-operator
2+ messages / 2 participants
[nested] [flat]
* JSON: @@-operator
@ 2019-10-29 16:29 PG Doc comments form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2019-10-29 16:29 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: kowarschick@gmail.com
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/12/functions-json.html
Description:
'{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2' does not work;
'{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'::jsonpath works as expected
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: JSON: @@-operator
@ 2019-10-29 23:35 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Doc comments form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2019-10-29 23:35 UTC (permalink / raw)
To: kowarschick@gmail.com; +Cc: pgsql-docs@lists.postgresql.org
PG Doc comments form <noreply@postgresql.org> writes:
> The following documentation comment has been logged on the website:
> Page: https://www.postgresql.org/docs/12/functions-json.html
> Description:
> '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2' does not work;
> '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'::jsonpath works as expected
They both work for me:
regression=# select '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2';
?column?
----------
t
(1 row)
regression=# select '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'::jsonpath;
?column?
----------
t
(1 row)
The most likely explanation is that you have some non-built-in
"jsonb @@ something" operator in your installation. But you
did not say what "does not work" means, so I'm just guessing.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-10-29 23:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 16:29 JSON: @@-operator PG Doc comments form <noreply@postgresql.org>
2019-10-29 23:35 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox