Re: WIP: patch to create explicit support for semi and anti joins

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: WIP: patch to create explicit support for semi and anti joins
Date: 2008-08-22 00:27:40
Message-ID: 21373.1219364860@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Introduce JOIN_SEMI and JOIN_ANTI join types, the former replacing
>> JOIN_IN.

> It just struck me that this may cause additional joins to count
> against the join_collapse_limit. If so, that could cause some
> borderline queries to optimize poorly if the limit isn't raised. Is
> that a reasonable concern? Possibly something to document in the
> release notes?

I don't think we should change anything there. The collapse limit
settings are mainly driven by not wanting to get into an exponential
growth of planning time, and the way in which join situations are
created doesn't really affect the appropriate value one way or the
other.

In a case where this did happen, you'd just have exchanged one
suboptimal planning situation for another, so I'm unconvinced that it'd
make matters any worse compared to prior releases. (That does seem like
a point worth testing, though, if you want to.)

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-08-22 00:34:24 Re: [HACKERS] [FINALLY] the TODO list has migrated to Wiki
Previous Message Alvaro Herrera 2008-08-22 00:10:42 Re: [HACKERS] [FINALLY] the TODO list has migrated to Wiki