From: Tom Lane <tgl@sss.pgh.pa.us>
To: jim@nasby.net
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [PERFORM] Hypothetical suggestions for planner, indexing improvement
Date: Tue, 06 May 2003 09:45:07 -0400
Message-ID: <24779.1052228707@sss.pgh.pa.us> (raw)
In-Reply-To: <20030506080747.C66185@flake.decibel.org>
References: <200305051219.58955.josh@agliodbs.com>
<22292.1052195133@sss.pgh.pa.us>
<200305052133.33680.josh@agliodbs.com>
<20030506080747.C66185@flake.decibel.org>
"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...
> 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.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jim@nasby.net, josh@agliodbs.com, pgsql-hackers@postgresql.org
Subject: Re: [PERFORM] Hypothetical suggestions for planner, indexing improvement
In-Reply-To: <24779.1052228707@sss.pgh.pa.us>
References: <200305051219.58955.josh@agliodbs.com> <22292.1052195133@sss.pgh.pa.us> <200305052133.33680.josh@agliodbs.com> <20030506080747.C66185@flake.decibel.org> <24779.1052228707@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox