Re: [PERFORM] EXISTS optimization

From: "Peter Kovacs" <peter(dot)kovacs(dot)1(dot)0rc(at)gmail(dot)com>
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: [PERFORM] EXISTS optimization
Date: 2007-03-23 23:04:44
Message-ID: b6e8f2e80703231604v72b9dc4dr51eebd62274d53ec@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On 3/23/07, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
[...]
> That's the good news. The bad news is that I operate under a management portability dictate which doesn't currently allow that syntax, since not all of the products they want to

It doesn't really touch the substance, but I am curious: are you not
even allowed to discriminate between products in your code like:
if db is 'postresql' then
...
else
...
?

What would be the rationale for that?

Thanks
Peter

cover support it. I tried something which seems equivalent, but it is
running for a very long time. I'll show it with just the explain
while I wait to see how long the explain analyze takes.
>
[...]

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2007-03-24 00:55:36 Time to package 8.2.4
Previous Message Tom Lane 2007-03-23 23:04:12 Re: EXISTS optimization

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Grittner 2007-03-24 02:28:36 Re: [PERFORM] EXISTS optimization
Previous Message Tom Lane 2007-03-23 23:04:12 Re: EXISTS optimization