Re: Hash Join vs Nested Loops in 7.2.1 ... - Mailing list pgsql-general

From Tom Lane
Subject Re: Hash Join vs Nested Loops in 7.2.1 ...
Date
Msg-id 10456.1018381931@sss.pgh.pa.us
Whole thread Raw
In response to Re: Hash Join vs Nested Loops in 7.2.1 ...  (Ed Loehr <pggeneral@bluepolka.net>)
List pgsql-general
Ed Loehr <pggeneral@bluepolka.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

pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: vacuuming not working?
Next
From: Jean-Luc Lachance
Date:
Subject: table alias nor valid for delete