Re: [HACKERS] [GENERAL] Recursive optimization of IN subqueries

2004-01-23 Thread Tom Lane
Dennis Haney <[EMAIL PROTECTED]> writes: > But this limited optimization makes me wonder, why the limitation to > optimizing '='? In the first place, you wouldn't get any improvement anyway if the combining operator is not '=' --- if it isn't, then merge and hash join aren't applicable and so you

Re: [HACKERS] [GENERAL] Recursive optimization of IN subqueries

2004-01-23 Thread Dennis Haney
Tom Lane wrote: Dennis Haney <[EMAIL PROTECTED]> writes: I saw it as though convert_IN_to_join rewrote the query from select a.* from tenk1 a where a.unique1 in (select c.thousand from tenk1 c where c.hundred = 99); to select a.* from te