Re: BUG #12556: Clause IN and NOT IN buggy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kevin(dot)perais(at)trivia-marketing(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12556: Clause IN and NOT IN buggy
Date: 2015-01-15 17:05:26
Message-ID: 6445.1421341526@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

kevin(dot)perais(at)trivia-marketing(dot)com writes:
> I've been noticing several times that clauses IN and NOT IN are often buggy.

None of your examples demonstrate any such thing. What's much more likely
is that you've forgotten about NOT IN's weird (but spec-mandated) behavior
with NULLs, and/or misspelled a field name so that the output of the
sub-SELECT is actually an outer reference.

> I'll show you 2 concrete cases to illustrate that.

My idea of a "concrete case" would be something that someone else could
reproduce from the given information, which would certainly require test
data.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2015-01-15 19:29:20 Re: [HACKERS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON
Previous Message kevin.perais 2015-01-15 11:27:20 BUG #12556: Clause IN and NOT IN buggy