Re: will the planner ever use an index when the condition is <> ? - Mailing list pgsql-performance

From Roxanne Reid-Bennett
Subject Re: will the planner ever use an index when the condition is <> ?
Date
Msg-id 4EEE4AA9.6000406@tara-lu.com
Whole thread Raw
In response to Re: will the planner ever use an index when the condition is <> ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On 12/18/2011 1:31 PM, Tom Lane wrote:
> If you have a specific case where that's not true, you might consider
> a partial index (CREATE INDEX ... WHERE x <> constant). But the
> details of that would depend a lot on the queries you're concerned
> about. regards, tom lane

Which I had tried in the form of (st_geometrytype(location) <>
'ST_Point'::text)... planner never picked it (for the scenario given
before).  But this thread was all pretty much .. design/plan/future use.
This specific instance I've handled with   in
("ST_Polygon","ST_MultiPolygon").

Thank you for the feedback.

Roxanne

pgsql-performance by date:

Previous
From: Marti Raudsepp
Date:
Subject: Re: will the planner ever use an index when the condition is <> ?
Next
From: Rafael Martinez
Date:
Subject: Dramatic change in memory usage with version 9.1