Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement - Mailing list pgsql-performance

From Jim C. Nasby
Subject Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement
Date
Msg-id 20030507000801.E66185@flake.decibel.org
Whole thread Raw
In response to Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement
List pgsql-performance
On Tue, May 06, 2003 at 09:45:07AM -0400, Tom Lane wrote:
> "Jim C. Nasby" <jim@nasby.net> writes:
> > It would be nice to add support for multi-column IN..
> > WHERE (a, b, c) IN (SELECT a, b, c ...)
>
> RTFM...

As someone pointed out, the documentation says you can't. In this case
the docs are wrong (I've added a note).

> > BTW, does postgresql handle IN and EXISTS differently?
>
> Yes.
>
> > Theoretically if the optimizer was good enough you could transform one
> > to the other and not worry about it.
>
> No.  They have different responses to NULLs in the subselect result.

They appear to operate the same... what's different?
--
Jim C. Nasby (aka Decibel!)                    jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"


pgsql-performance by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Looking for a cheap upgrade (RAID)
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement