On Mon, Feb 09, 2004 at 18:39:48 -0600,
"Jim C. Nasby" <jim@nasby.net> wrote:
> Hrm, I didn't realize that. Is it in the docs anywhere? I didn't see it
> in Chapter 11... I'm particularly interested in why NULL/NOT NULL isn't
> indexable.
>
> Are where clauses on indexes like
>
> email_contrib__team_id btree (team_id) WHERE (team_id IS NOT NULL)
>
> still valid/usefull? If I wanted to create the converse of that index,
While IS NULL and IS NOT NULL are not indexable, they can be used as
restrictions for partial indexes. If the matching clause is used in
a where clause, then the partial index could potentially be used
for executing the query.