Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
884dede3
Commit
884dede3
authored
10 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
doc: adjust JSONB GIN index description
Backpatch through 9.4
parent
a52f2a0b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/json.sgml
+10
-5
10 additions, 5 deletions
doc/src/sgml/json.sgml
with
10 additions
and
5 deletions
doc/src/sgml/json.sgml
+
10
−
5
View file @
884dede3
...
@@ -460,11 +460,16 @@ SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @> '{"tags": ["qu
...
@@ -460,11 +460,16 @@ SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @> '{"tags": ["qu
and a <literal>jsonb_path_ops</literal> GIN index is that the former
and a <literal>jsonb_path_ops</literal> GIN index is that the former
creates independent index items for each key and value in the data,
creates independent index items for each key and value in the data,
while the latter creates index items only for each value in the
while the latter creates index items only for each value in the
data.<footnote><para>For this purpose, the term <quote>value</>
data.
includes array elements, though JSON terminology sometimes considers
<footnote>
array elements distinct from values within objects.</para></footnote>
<para>
But in <literal>jsonb_path_ops</literal>, each index item is a hash
For this purpose, the term <quote>value</> includes array elements,
of both the value and the key(s) leading to it; for example to index
though JSON terminology sometimes considers array elements distinct
from values within objects.
</para>
</footnote>
Basically, each <literal>jsonb_path_ops</literal> index item is
a hash of the value and the key(s) leading to it; for example to index
<literal>{"foo": {"bar": "baz"}}</literal>, a single index item would
<literal>{"foo": {"bar": "baz"}}</literal>, a single index item would
be created incorporating all three of <literal>foo</>, <literal>bar</>,
be created incorporating all three of <literal>foo</>, <literal>bar</>,
and <literal>baz</> into the hash value. Thus a containment query
and <literal>baz</> into the hash value. Thus a containment query
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment