pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Timo Nentwig <timo@nitwit.de>
To: support@postgresql.org
Subject: Bug in optimizer
Date: Mon, 03 May 2004 18:08:23 +0200
Message-ID: <40966E77.4020004@nitwit.de> (raw)

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



view thread (3+ messages)  latest in thread

Message-ID: <40966E77.4020004@nitwit.de>
Permalink:  ../40966E77.4020004@nitwit.de/
Also on:    postgresql.org/message-id/40966E77.4020004@nitwit.de

 · 

reply

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: timo@nitwit.de, support@postgresql.org
  Subject: Re: Bug in optimizer
  In-Reply-To: <40966E77.4020004@nitwit.de>

* 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