Unix Technical Forum

Query Planner

This is a discussion on Query Planner within the Pgsql Performance forums, part of the PostgreSQL category; --> Hi List, I have a Query. So when i do explain analyse on it , it shows me many ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:16 AM
Gauri Kanekar
 
Posts: n/a
Default Query Planner

Hi List,

I have a Query. So when i do explain analyse on it , it shows me many Hash
Joins.
So is it possible to indicate the Query Planner not to consider Hash Join.

--
Regards
Gauri

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 10:16 AM
Steinar H. Gunderson
 
Posts: n/a
Default Re: Query Planner

On Mon, Feb 26, 2007 at 05:19:05PM +0530, Gauri Kanekar wrote:
> I have a Query. So when i do explain analyse on it , it shows me many Hash
> Joins.
> So is it possible to indicate the Query Planner not to consider Hash Join.


set enable_hashjoin = false;

This is very often the wrong solution, though. If hash join is indeed slower
than merge join, the planner should have guessed so, and it would be better
to find out why the planner guessed wrong, and correct it somehow.

/* Steinar */
--
Homepage: http://www.sesse.net/

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com