Re: enabling nestedloop and disabling hashjon - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: enabling nestedloop and disabling hashjon
Date
Msg-id 54DD1567.8020504@BlueTreble.com
Whole thread Raw
In response to Re: enabling nestedloop and disabling hashjon  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: enabling nestedloop and disabling hashjon  (Ravi Kiran <ravi.kolanpaka@gmail.com>)
Re: enabling nestedloop and disabling hashjon  (David G Johnston <david.g.johnston@gmail.com>)
List pgsql-hackers
On 2/10/15 9:29 AM, Tom Lane wrote:
> Ravi Kiran <ravi.kolanpaka@gmail.com> writes:
>> yes sir, I did try the pg_ctl reload command, but its still using the hash
>> join algorithm and not the nested loop algorithm. I even restarted the
>> server, even then its still using the hash join algorithm
>
> Does "show enable_hashjoin" say it's off?  If not, I think you must've
> fat-fingered the postgresql.conf change somehow.

For future reference, posts like this belong on pgsql-performance.

The other possibility is that the query estimates are so high that the 
setting doesn't matter. When you set any of the enable_* settings to 
off, all that really happens is the planner adds a cost of 10M to those 
nodes when it's planning. Normally that's enough to toss those plans 
out, but in extreme cases the cost estimates will still come up with the 
un-desired plan.

Can you post EXPLAIN ANALYZE output with the setting on and off? Or at 
least plain EXLPAIN output.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: gcc5: initdb produces gigabytes of _fsm files
Next
From: Robert Haas
Date:
Subject: Re: assessing parallel-safety