1- <!-- $PostgreSQL: pgsql/doc/src/sgml/btree-gist.sgml,v 1.6 2010/08/02 16:26:48 rhaas Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/btree-gist.sgml,v 1.7 2010/08/03 15:15:31 tgl Exp $ -->
22
33<sect1 id="btree-gist">
44 <title>btree_gist</title>
2929
3030 <para>
3131 In addition to the typical btree search operators, btree_gist also
32- provides search operators for <literal><></literal> (" not
33- equals" ). This may be useful in combination with an
34- <link linkend="SQL-CREATETABLE-EXCLUDE">Exclusion Constraint </link>,
35- as descibed below.
32+ provides search operators for <literal><></literal> (<quote> not
33+ equals</quote> ). This may be useful in combination with an
34+ <link linkend="SQL-CREATETABLE-EXCLUDE">exclusion constraint </link>,
35+ as described below.
3636 </para>
3737
3838 <sect2>
@@ -51,26 +51,26 @@ SELECT * FROM test WHERE a < 10;
5151</programlisting>
5252
5353 <para>
54- Example using an <link linkend="SQL-CREATETABLE-EXCLUDE">Exclusion
55- Constraint </link> to enforce the constraint that a cage at a zoo
54+ Use an <link linkend="SQL-CREATETABLE-EXCLUDE">exclusion
55+ constraint </link> to enforce the rule that a cage at a zoo
5656 can contain only one kind of animal:
5757 </para>
5858
5959<programlisting>
60- => CREATE TABLE zoo (
60+ => CREATE TABLE zoo (
6161 cage INTEGER,
6262 animal TEXT,
63- EXCLUDE USING gist (cage WITH =, animal WITH <> )
63+ EXCLUDE USING gist (cage WITH =, animal WITH <> )
6464);
6565
66- => INSERT INTO zoo VALUES(123, 'zebra');
66+ => INSERT INTO zoo VALUES(123, 'zebra');
6767INSERT 0 1
68- => INSERT INTO zoo VALUES(123, 'zebra');
68+ => INSERT INTO zoo VALUES(123, 'zebra');
6969INSERT 0 1
70- => INSERT INTO zoo VALUES(123, 'lion');
70+ => INSERT INTO zoo VALUES(123, 'lion');
7171ERROR: conflicting key value violates exclusion constraint "zoo_cage_animal_excl"
7272DETAIL: Key (cage, animal)=(123, lion) conflicts with existing key (cage, animal)=(123, zebra).
73- => INSERT INTO zoo VALUES(124, 'lion');
73+ => INSERT INTO zoo VALUES(124, 'lion');
7474INSERT 0 1
7575</programlisting>
7676
0 commit comments