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
ae736399
Commit
ae736399
authored
12 years ago
by
Heikki Linnakangas
Browse files
Options
Downloads
Patches
Plain Diff
Mention in docs that you can create SP-GiST indexes on range types.
This is new in 9.3devel.
parent
4f8799a9
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/rangetypes.sgml
+6
-6
6 additions, 6 deletions
doc/src/sgml/rangetypes.sgml
with
6 additions
and
6 deletions
doc/src/sgml/rangetypes.sgml
+
6
−
6
View file @
ae736399
...
@@ -371,9 +371,9 @@ SELECT '[1.234, 5.678]'::floatrange;
...
@@ -371,9 +371,9 @@ SELECT '[1.234, 5.678]'::floatrange;
</para>
</para>
<para>
<para>
In addition, any range type that is meant to be used with GiST indexes
In addition, any range type that is meant to be used with GiST
or SP-GiST
indexes
should define a subtype difference, or <literal>subtype_diff</>, function.
should define a subtype difference, or <literal>subtype_diff</>, function.
(
A GiST
index will still work without <literal>subtype_diff</>, but it is
(
the
index will still work without <literal>subtype_diff</>, but it is
likely to be considerably less efficient than if a difference function is
likely to be considerably less efficient than if a difference function is
provided.) The subtype difference function takes two input values of the
provided.) The subtype difference function takes two input values of the
subtype, and returns their difference (i.e., <replaceable>X</> minus
subtype, and returns their difference (i.e., <replaceable>X</> minus
...
@@ -394,7 +394,7 @@ SELECT '[1.234, 5.678]'::floatrange;
...
@@ -394,7 +394,7 @@ SELECT '[1.234, 5.678]'::floatrange;
</para>
</para>
</sect2>
</sect2>
<sect2 id="rangetypes-
gist
">
<sect2 id="rangetypes-
indexing
">
<title>Indexing</title>
<title>Indexing</title>
<indexterm>
<indexterm>
...
@@ -403,12 +403,12 @@ SELECT '[1.234, 5.678]'::floatrange;
...
@@ -403,12 +403,12 @@ SELECT '[1.234, 5.678]'::floatrange;
</indexterm>
</indexterm>
<para>
<para>
GiST indexes can be created for table columns of range types.
GiST
and SP-GiST
indexes can be created for table columns of range types.
For instance:
For instance
, to create a GiST index
:
<programlisting>
<programlisting>
CREATE INDEX reservation_idx ON reservation USING gist (during);
CREATE INDEX reservation_idx ON reservation USING gist (during);
</programlisting>
</programlisting>
A GiST index can accelerate queries involving these range operators:
A GiST
or SP-GiST
index can accelerate queries involving these range operators:
<literal>=</>,
<literal>=</>,
<literal>&&</>,
<literal>&&</>,
<literal><@</>,
<literal><@</>,
...
...
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