NOT IN doesn't use index? - Mailing list pgsql-performance

From Becky Neville
Subject NOT IN doesn't use index?
Date
Msg-id Pine.LNX.4.44.0305030153230.2047-100000@termite.zoo.cs.yale.edu
Whole thread Raw
Responses Re: NOT IN doesn't use index?  (Andrew Sullivan <andrew@libertyrms.info>)
List pgsql-performance
I have been looking through the archives but can't find anything on this.

Does the use of WHERE field  NOT IN ('A','B' etc) prevent the use of an
index?
Would changing the query to WHERE field <> 'A' and field <> 'B' etc help?

The query only involves one table, and this is the only field in the where
clause.  Explain plan indicates a Sort and Seq Scan are being done.

THanks


pgsql-performance by date:

Previous
From: Antoine
Date:
Subject: looking for large dataset
Next
From: "D'Arcy J.M. Cain"
Date:
Subject: Re: Looking for a cheap upgrade (RAID)