|
|
@ -489,7 +489,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"'; |
|
|
|
</programlisting> |
|
|
|
</programlisting> |
|
|
|
<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> |
|
|
|
</programlisting> |
|
|
|
GIN index extracts statements of following form out of |
|
|
|
GIN index extracts statements of following form out of |
|
|
|
<literal>jsonpath</literal>: <replaceable>accessors_chain</replaceable> = <replaceable>const</replaceable>. |
|
|
|
<literal>jsonpath</literal>: <replaceable>accessors_chain</replaceable> = <replaceable>const</replaceable>. |
|
|
|