From: Gaetano Mendola <mendola@bigfoot.com>
To: Timo Nentwig <timo@nitwit.de>
Subject: Re: Bug in optimizer
Date: Wed, 05 May 2004 19:31:01 +0200
Message-ID: <409924D5.1090001@bigfoot.com> (raw)
In-Reply-To: <40966E77.4020004@nitwit.de>
References: <40966E77.4020004@nitwit.de>
Timo Nentwig wrote:
> This is very slow:
>
> SELECT urls.id FROM urls WHERE
> (
> urls.id <> ALL (SELECT html.urlid FROM html)
> );
>
> ...while this is quite fast:
>
> SELECT urls.id FROM urls WHERE
> (
> NOT (EXISTS (SELECT html.urlid FROM tml WHERE
> (
> html.urlid = urls.id
> )))
> );
Are you using the version 7.4.x ?
Regards
Gaetano Mendola
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-performance@postgresql.org
Cc: mendola@bigfoot.com, timo@nitwit.de
Subject: Re: Bug in optimizer
In-Reply-To: <409924D5.1090001@bigfoot.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