Re: BUG #4949: NOT IN is prohibitive slower than the rewrite for medium to large sets

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ole Tange" <postgresql(dot)org(at)tange(dot)dk>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4949: NOT IN is prohibitive slower than the rewrite for medium to large sets
Date: 2009-07-28 13:47:47
Message-ID: 16400.1248788867@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Ole Tange" <postgresql(dot)org(at)tange(dot)dk> writes:
> (modulo NULLs which seem to always cause problems in NOT INs).

> Because it can be rewritten, NOT IN should never be much slower than the
> rewritten solution, as PostgreSQL should simply rewrite NOT IN to the
> above.

Let's see, you understand that the rewrite violates the SQL standard
semantics of NOT IN, but you think we should do it anyway?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-07-28 14:01:37 Re: BUG #4948: getting error while vacuuming the database
Previous Message Ramakanth 2009-07-28 13:26:06 BUG #4950: Problem in Job scheduling in Advanced postgre sql