Skip site navigation (1) Skip section navigation (2)

Re: BUG #4422: select ... where ... NOT EXISTS / NOT IN

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: vasile <vasile(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4422: select ... where ... NOT EXISTS / NOT IN
Date: 2008-09-17 15:49:02
Message-ID: 20080917154902.GB22210@depesz.com (view raw or flat)
Thread:
Lists: pgsql-bugs
On Wed, Sep 17, 2008 at 02:53:51PM +0000, vasile wrote:
> I have this 2 similar queries. 
> 
> Why the 1st query is returning 1000+ rows and the 2nd one no rows ? 
>   The col1 is not empty in both tables. 

there is no bug.
check this:

http://www.depesz.com/index.php/2008/08/13/nulls-vs-not-in/

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2008-09-17 17:46:55
Subject: Re: BUG #4421: convert_to() should be immutable
Previous:From: Heikki LinnakangasDate: 2008-09-17 15:24:03
Subject: Re: BUG #4421: convert_to() should be immutable

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group