Re: [PERFORM] Hypothetical suggestions for planner, indexing improvement

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-performance <pgsql-performance(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PERFORM] Hypothetical suggestions for planner, indexing improvement
Date: 2003-05-07 05:08:01
Message-ID: 20030507000801.E66185@flake.decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On Tue, May 06, 2003 at 09:45:07AM -0400, Tom Lane wrote:
> "Jim C. Nasby" <jim(at)nasby(dot)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(at)nasby(dot)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?"

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-05-07 05:20:36 Re: [PERFORM] Hypothetical suggestions for planner, indexing improvement
Previous Message Tom Lane 2003-05-07 04:55:33 Re: 7.4 features list

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-05-07 05:20:36 Re: [PERFORM] Hypothetical suggestions for planner, indexing improvement
Previous Message scott.marlowe 2003-05-06 20:40:04 Re: Looking for a cheap upgrade (RAID)