Re: Hash Join vs Nested Loops in 7.2.1 ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ed Loehr <pggeneral(at)bluepolka(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Hash Join vs Nested Loops in 7.2.1 ...
Date: 2002-04-09 19:52:11
Message-ID: 10456.1018381931@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ed Loehr <pggeneral(at)bluepolka(dot)net> writes:
> What I neglected to mention was that the planner was *choosing* the
> slower hashjoin plan over the much faster nested loop plan without any
> PGOPTIONS set or any postgresql.conf changes to enable_*, thus the
> motivation for a "thumb on the scales." After upping the number of
> shared buffers, it has begun choosing the smart plan 1-second plan,

Interesting. The estimated cost of indexscans is dependent on
shared_buffers, but not so dependent that I'd have expected it to make a
difference here. What were the EXPLAIN numbers you were getting, again?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-04-09 19:54:58 table alias nor valid for delete
Previous Message Andrew Sullivan 2002-04-09 19:40:48 Re: vacuuming not working?