Re: NOT-IN CLAUSE - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: NOT-IN CLAUSE
Date
Msg-id 20031215192847.GA24755@wolff.to
Whole thread Raw
In response to NOT-IN CLAUSE  ("Prashant Dalal" <pdalal@laborlogix.com>)
List pgsql-sql
On Mon, Dec 15, 2003 at 12:14:17 -0500, Prashant Dalal <pdalal@laborlogix.com> wrote:
> Hi,
> 
> My Following select st. is running from last one day. I think the problem is
> NOT IN clause.
> Please suggest the alternative select clause.

NOT IN was especially slow up until Postgres 7.4. If using 7.4 is a problem
you can rewrite your query to use NOT EXISTS.


pgsql-sql by date:

Previous
From: "Prashant Dalal"
Date:
Subject: NOT-IN CLAUSE
Next
From: Michael Shapiro
Date:
Subject: arrays in pl/pgsql