Re: Index on a NULL-value - Mailing list pgsql-performance

From Tom Lane
Subject Re: Index on a NULL-value
Date
Msg-id 8324.1117516366@sss.pgh.pa.us
Whole thread Raw
In response to Re: Index on a NULL-value  (Greg Stark <gsstark@mit.edu>)
List pgsql-performance
Greg Stark <gsstark@mit.edu> writes:
> then it would be a candidate because the ORDER BY or the other > 0 make the
> index look relevant. But I don't think (again I'm not 100% sure) that the
> partial index WHERE clause is considered in picking which indexes to consider.

Nope, the partial index will be considered simply on the strength of its
predicate matching the WHERE clause.

Of course, if you can get some additional mileage by having the index
contents be useful, that's great --- but it's not necessary.

            regards, tom lane

pgsql-performance by date:

Previous
From: Greg Stark
Date:
Subject: Re: Index on a NULL-value
Next
From: Tobias Brox
Date:
Subject: Re: Index on a NULL-value