subquery performance and EXISTS - Mailing list pgsql-hackers

From Bruce Momjian
Subject subquery performance and EXISTS
Date
Msg-id 199912291411.JAA02236@candle.pha.pa.us
Whole thread Raw
Responses Re: subquery performance and EXISTS
List pgsql-hackers
I am writing the subquery chapter of the book.  Tom, you once mentioned
you could get subqueries to use HASH joins, but you didn't because
someone said it may a run out of memory.

I would suggest that if it is that large a subquery, our nested loop
handling will take forever, so would never finish anyway, unless the
outer query has only a few rows.

Tom, does it still look easy to change, and if so, can you change it to
hash?  I know the real fix is for multiple target lists.

I would rather not have to go mention a serious performance workaround
in the book, because the limitation would be published perhaps for many
years.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Adriaan Joubert
Date:
Subject: Re: [HACKERS] Index corruption
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Index corruption