diff options
author | Michael Paquier | 2021-04-16 07:56:12 +0000 |
---|---|---|
committer | Michael Paquier | 2021-04-16 07:56:12 +0000 |
commit | 254a2164e5b216ecf98882f8bcb9e239ab2d432d (patch) | |
tree | 59f4582cd36a62ca38c452d889b289c6c819352d | |
parent | f5fc2f5b23d1b1dff60f8ca5dc211161df47eda4 (diff) |
doc: Fix typo in example query of SQL/JSON
Author: Erik Rijkers
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 12
-rw-r--r-- | doc/src/sgml/json.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/json.sgml b/doc/src/sgml/json.sgml index 6ab836548b..1b5103e269 100644 --- a/doc/src/sgml/json.sgml +++ b/doc/src/sgml/json.sgml @@ -489,7 +489,7 @@ CREATE INDEX idxgintags ON api USING GIN ((jdoc -> 'tags')); SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] == "qui"'; </programlisting> <programlisting> -SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] ? (@ == "qui")'; +SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @? '$.tags[*] ? (@ == "qui")'; </programlisting> GIN index extracts statements of following form out of <literal>jsonpath</literal>: <replaceable>accessors_chain</replaceable> = <replaceable>const</replaceable>. |