Skip to content

Commit bb18b47

Browse files
committed
Document partial indexes for IS NULL lookups.
1 parent 2f2a343 commit bb18b47

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/src/sgml/ref/create_index.sgml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_index.sgml,v 1.45 2004/04/20 01:00:26 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_index.sgml,v 1.46 2004/04/20 04:25:47 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -77,11 +77,9 @@ CREATE [ UNIQUE ] INDEX <replaceable class="parameter">name</replaceable> ON <re
7777
</para>
7878

7979
<para>
80-
<literal>NULL</> values are not indexed by default. The best way
81-
to index <literal>NULL</> values is to create a partial index using
82-
an <literal>IS NULL</> comparison. <literal>IS NULL</> is more
83-
of a function call than a value comparison, and this is why a partial
84-
index works.
80+
Indexes can not be used with <literal>IS NULL</> clauses by default.
81+
The best way to use indexes in such cases is to create a partial index
82+
using an <literal>IS NULL</> comparison.
8583
</para>
8684

8785
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy