From: Michael Paquier Date: Fri, 16 Apr 2021 07:56:29 +0000 (+0900) Subject: doc: Fix typo in example query of SQL/JSON X-Git-Tag: REL_12_7~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26cf32455c501f01d3b73dcf680072169749c980;p=thirdparty%2Fpostgresql.git doc: Fix typo in example query of SQL/JSON Author: Erik Rijkers Discussion: https://postgr.es/m/1219476687.20432.1617452918468@webmailclassic.xs4all.nl Backpatch-through: 12 --- diff --git a/doc/src/sgml/json.sgml b/doc/src/sgml/json.sgml index 6ff87518705..76b346a651a 100644 --- a/doc/src/sgml/json.sgml +++ b/doc/src/sgml/json.sgml @@ -487,7 +487,7 @@ CREATE INDEX idxgintags ON api USING GIN ((jdoc -> 'tags')); SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] == "qui"'; -SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] ? (@ == "qui")'; +SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @? '$.tags[*] ? (@ == "qui")'; GIN index extracts statements of following form out of jsonpath: accessors_chain = const.