Wrong code of GIN index

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: alx696(at)gmail(dot)com
Subject: Wrong code of GIN index
Date: 2020-07-23 05:07:14
Message-ID: 159548083469.622.6795362659984719107@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/datatype-json.html
Description:

https://www.postgresql.org/docs/12/datatype-json.html#JSON-INDEXING

SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] ? (@ ==
"qui")';

Should be:

SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @? '$.tags[*] ? (@ ==
"qui")';

With @@, no result.

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Geoghegan 2020-07-23 23:32:07 Re: Default setting for enable_hashagg_disk
Previous Message Peter Geoghegan 2020-07-23 02:54:26 Re: Default setting for enable_hashagg_disk