Bug in optimizer

From: Timo Nentwig <timo(at)nitwit(dot)de>
To: support(at)postgresql(dot)org
Subject: Bug in optimizer
Date: 2004-05-03 16:08:23
Message-ID: 40966E77.4020004@nitwit.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-performance

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Your bug report form on the web doesn't work.

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
)))
);

Regards
Timo
- --
http://nentwig.biz/ (J2EE)
http://nitwit.de/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAlm53cmRm71Um+e0RAkJuAKChd+6zoFesZfBY/cGRsSVagnJeswCeMD5s
++Es8hVsFlUpkIIsRfrBp4Y=
=STbS
-----END PGP SIGNATURE-----

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jérôme Bouat 2004-05-03 17:03:37 heterogeneous programs names
Previous Message Ted Kremenek 2004-05-03 03:22:07 Re: [CHECKER] 4 memory leaks in Postgresql 7.4.2

Browse pgsql-performance by date

  From Date Subject
Next Message Chris Browne 2004-05-03 16:38:33 Re: Recommended File System Configuration
Previous Message Robert Creager 2004-05-02 21:46:49 Re: Wierd context-switching issue on Xeon