@@ -371,9 +371,9 @@ SELECT '[1.234, 5.678]'::floatrange;
371
371
</para>
372
372
373
373
<para>
374
- In addition, any range type that is meant to be used with GiST indexes
374
+ In addition, any range type that is meant to be used with GiST or SP-GiST indexes
375
375
should define a subtype difference, or <literal>subtype_diff</>, function.
376
- (A GiST index will still work without <literal>subtype_diff</>, but it is
376
+ (the index will still work without <literal>subtype_diff</>, but it is
377
377
likely to be considerably less efficient than if a difference function is
378
378
provided.) The subtype difference function takes two input values of the
379
379
subtype, and returns their difference (i.e., <replaceable>X</> minus
@@ -394,7 +394,7 @@ SELECT '[1.234, 5.678]'::floatrange;
394
394
</para>
395
395
</sect2>
396
396
397
- <sect2 id="rangetypes-gist ">
397
+ <sect2 id="rangetypes-indexing ">
398
398
<title>Indexing</title>
399
399
400
400
<indexterm>
@@ -403,12 +403,12 @@ SELECT '[1.234, 5.678]'::floatrange;
403
403
</indexterm>
404
404
405
405
<para>
406
- GiST indexes can be created for table columns of range types.
407
- For instance:
406
+ GiST and SP-GiST indexes can be created for table columns of range types.
407
+ For instance, to create a GiST index :
408
408
<programlisting>
409
409
CREATE INDEX reservation_idx ON reservation USING gist (during);
410
410
</programlisting>
411
- A GiST index can accelerate queries involving these range operators:
411
+ A GiST or SP-GiST index can accelerate queries involving these range operators:
412
412
<literal>=</>,
413
413
<literal>&&</>,
414
414
<literal><@</>,
0 commit comments