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
8c19d14b
Commit
8c19d14b
authored
14 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix markup, other minor editing for recent btree_gist doc changes.
parent
532a4c35
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/btree-gist.sgml
+13
-13
13 additions, 13 deletions
doc/src/sgml/btree-gist.sgml
with
13 additions
and
13 deletions
doc/src/sgml/btree-gist.sgml
+
13
−
13
View file @
8c19d14b
<!-- $PostgreSQL: pgsql/doc/src/sgml/btree-gist.sgml,v 1.
6
2010/08/0
2
1
6:26:48 rhaas
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/btree-gist.sgml,v 1.
7
2010/08/0
3
1
5:15:31 tgl
Exp $ -->
<sect1 id="btree-gist">
<sect1 id="btree-gist">
<title>btree_gist</title>
<title>btree_gist</title>
...
@@ -29,10 +29,10 @@
...
@@ -29,10 +29,10 @@
<para>
<para>
In addition to the typical btree search operators, btree_gist also
In addition to the typical btree search operators, btree_gist also
provides search operators for <literal><></literal> (
"
not
provides search operators for <literal><></literal> (
<quote>
not
equals
"
). This may be useful in combination with an
equals
</quote>
). This may be useful in combination with an
<link linkend="SQL-CREATETABLE-EXCLUDE">
E
xclusion
C
onstraint</link>,
<link linkend="SQL-CREATETABLE-EXCLUDE">
e
xclusion
c
onstraint</link>,
as descibed below.
as desc
r
ibed below.
</para>
</para>
<sect2>
<sect2>
...
@@ -51,26 +51,26 @@ SELECT * FROM test WHERE a < 10;
...
@@ -51,26 +51,26 @@ SELECT * FROM test WHERE a < 10;
</programlisting>
</programlisting>
<para>
<para>
Example using
an <link linkend="SQL-CREATETABLE-EXCLUDE">
E
xclusion
Use
an <link linkend="SQL-CREATETABLE-EXCLUDE">
e
xclusion
C
onstraint</link> to enforce the
constraint
that a cage at a zoo
c
onstraint</link> to enforce the
rule
that a cage at a zoo
can contain only one kind of animal:
can contain only one kind of animal:
</para>
</para>
<programlisting>
<programlisting>
=
>
CREATE TABLE zoo (
=
>
CREATE TABLE zoo (
cage INTEGER,
cage INTEGER,
animal TEXT,
animal TEXT,
EXCLUDE USING gist (cage WITH =, animal WITH
<>
)
EXCLUDE USING gist (cage WITH =, animal WITH
<>
)
);
);
=
>
INSERT INTO zoo VALUES(123, 'zebra');
=
>
INSERT INTO zoo VALUES(123, 'zebra');
INSERT 0 1
INSERT 0 1
=
>
INSERT INTO zoo VALUES(123, 'zebra');
=
>
INSERT INTO zoo VALUES(123, 'zebra');
INSERT 0 1
INSERT 0 1
=
>
INSERT INTO zoo VALUES(123, 'lion');
=
>
INSERT INTO zoo VALUES(123, 'lion');
ERROR: conflicting key value violates exclusion constraint "zoo_cage_animal_excl"
ERROR: conflicting key value violates exclusion constraint "zoo_cage_animal_excl"
DETAIL: Key (cage, animal)=(123, lion) conflicts with existing key (cage, animal)=(123, zebra).
DETAIL: Key (cage, animal)=(123, lion) conflicts with existing key (cage, animal)=(123, zebra).
=
>
INSERT INTO zoo VALUES(124, 'lion');
=
>
INSERT INTO zoo VALUES(124, 'lion');
INSERT 0 1
INSERT 0 1
</programlisting>
</programlisting>
...
...
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