From: Aaron Bono <postgresql@aranya.com>
To: Exner, Peter <Exner@his.de>
Cc: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: SQL Postgresql List <pgsql-sql@postgresql.org>
Subject: Re: How to find entries missing in 2nd table?
Date: Thu, 13 Jul 2006 10:46:11 -0500
Message-ID: <bf05e51c0607130846ufdb8a31n5757f67361447c2b@mail.gmail.com> (raw)
In-Reply-To: <507847EF2B23D748BAC77799DA52D0EC6FD63F@mailbox.his.de>
References: <507847EF2B23D748BAC77799DA52D0EC6FD63F@mailbox.his.de>
On 7/12/06, Exner, Peter <Exner@his.de> wrote:
>
> Hi,
>
> what about
>
> SELECT controller_id FROM control
> WHERE controller_id NOT IN
> (SELECT DISTINCT controller_id FROM datapack);
The DISTINCT is not necessary. I have heard with Oracle that DISTINCT is a
huge performance problem. Is that true on PostgreSQL also?
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
==================================================================
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: postgresql@aranya.com, Exner@his.de, rabroersma@yahoo.com
Subject: Re: How to find entries missing in 2nd table?
In-Reply-To: <bf05e51c0607130846ufdb8a31n5757f67361447c2b@mail.gmail.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