From: Josh Berkus <josh@agliodbs.com>
To: Becky Neville <rebecca.neville@yale.edu>
To: andrew@libertyrms.info
Cc: pgsql-performance@postgresql.org
Subject: Re: NOT IN doesn't use index? (fwd)
Date: Sat, 3 May 2003 11:34:40 -0700
Message-ID: <200305031134.40508.josh@agliodbs.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305031351170.9063-100000@termite.zoo.cs.yale.edu>
References: <Pine.LNX.4.44.0305031351170.9063-100000@termite.zoo.cs.yale.edu>
Becky,
> Here is the EXPLAIN output from the two queries. The first is the one
> that uses WHERE field NOT IN ( 'a','b' etc ). The second is the (much
> faster) one
> that uses WHERE NOT (field = 'a' and field = 'b' etc).
We still can't help you if you're not posting your actual queries. We have no
idea what's in query3.sql. We're not clairvoyant, y'know.
--
Josh Berkus
Aglio Database Solutions
San Francisco
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, rebecca.neville@yale.edu, andrew@libertyrms.info
Subject: Re: NOT IN doesn't use index? (fwd)
In-Reply-To: <200305031134.40508.josh@agliodbs.com>
References: <Pine.LNX.4.44.0305031351170.9063-100000@termite.zoo.cs.yale.edu> <200305031134.40508.josh@agliodbs.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