From: Roxanne Reid-Bennett <rox@tara-lu.com>
To: pgsql-performance@postgresql.org
Subject: Re: will the planner ever use an index when the condition is <> ?
Date: Sun, 18 Dec 2011 15:18:49 -0500
Message-ID: <4EEE4AA9.6000406@tara-lu.com> (raw)
In-Reply-To: <3088.1324233086@sss.pgh.pa.us>
References: <4EECB57F.3050208@tara-lu.com>
<CAP_rwwmg8ELD3YQgMyUzkXrrRy0GsgqdPZKYUFb-o6=X3YTgNA@mail.gmail.com>
<4EEDFE1E.9070303@tara-lu.com>
<3088.1324233086@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: rox@tara-lu.com
Subject: Re: will the planner ever use an index when the condition is <> ?
In-Reply-To: <4EEE4AA9.6000406@tara-lu.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox