Skip site navigation (1) Skip section navigation (2)

Re: EXISTS optimization

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org,pgsql-performance(at)postgresql(dot)org,Andrea Olson <Aolson(dot)CCAP(dot)Courts(at)wicourts(dot)gov>,Bill Severson <BSEVERS(dot)CCAP(dot)Courts(at)wicourts(dot)gov>,John Hutchins <jhutchi(dot)CCAP(dot)Courts(at)wicourts(dot)gov>,Randy Peterson <RPETERS(dot)CCAP(dot)Courts(at)wicourts(dot)gov>,Shannon Spranger <ssprang(dot)CCAP(dot)Courts(at)wicourts(dot)gov>
Subject: Re: EXISTS optimization
Date: 2007-03-24 13:07:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-performance
On Fri, Mar 23, 2007 at 05:30:27PM -0500, Kevin Grittner wrote:
> I don't understand -- TRUE OR UNKNOWN evaluates to TRUE, so why would
> the IN need to continue?  I'm not quite following the rest; could you
> elaborate or give an example?  (Sorry if I'm lagging behind the rest
> of the class here.)

You're right, I'm getting confused with the interaction of NULL and NOT

The multiple evaluation thing still applies, but that's minor.

Have a nice day,
Martijn van Oosterhout   <kleptog(at)svana(dot)org>
> From each according to his ability. To each according to his ability to litigate.

In response to

pgsql-performance by date

Next:From: Dave CramerDate: 2007-03-24 13:31:11
Subject: Re: Optimization postgresql 8.1.4 FC 6 X64 ?
Previous:From: Heikki LinnakangasDate: 2007-03-24 10:44:47
Subject: Re: Optimization postgresql 8.1.4 FC 6 X64 ?

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2007-03-24 14:07:57
Subject: tsearch2 regression test failures
Previous:From: nc-kocamana2Date: 2007-03-24 12:41:16
Subject: Re: Time to package 8.2.4

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group