From: Bruno Wolff III <bruno@wolff.to>
To: Prashant Dalal <pdalal@laborlogix.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: NOT-IN CLAUSE
Date: Mon, 15 Dec 2003 13:28:47 -0600
Message-ID: <20031215192847.GA24755@wolff.to> (raw)
In-Reply-To: <NEBBKKKHLCPKJPDHMHMKCEEDLEAB.pdalal@laborlogix.com>
References: <NEBBKKKHLCPKJPDHMHMKCEEDLEAB.pdalal@laborlogix.com>
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.
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-sql@postgresql.org
Cc: bruno@wolff.to, pdalal@laborlogix.com
Subject: Re: NOT-IN CLAUSE
In-Reply-To: <20031215192847.GA24755@wolff.to>
* 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