From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Luc Lachance <jllachan@sympatico.ca>
Cc: pgsql-performance@postgresql.org, Frank van Vugt <ftm.van.vugt@foxi.nl>
Subject: Re: *very* inefficient choice made by the planner (regarding
Date: Thu, 10 Jun 2004 11:59:05 -0400
Message-ID: <25304.1086883145@sss.pgh.pa.us> (raw)
In-Reply-To: <40C881FE.5000301@sympatico.ca>
References: <200406101624.21739.ftm.van.vugt@foxi.nl>
<40C881FE.5000301@sympatico.ca>
Jean-Luc Lachance <jllachan@sympatico.ca> writes:
> If the two statments are functionally equivalent, why can't PG rewrite
> the "NOT IN" version into the more efficient "NOT EXISTS"?
They're not equivalent. In particular, the behavior in the presence of
NULLs is quite different.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jllachan@sympatico.ca, ftm.van.vugt@foxi.nl
Subject: Re: *very* inefficient choice made by the planner (regarding
In-Reply-To: <25304.1086883145@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