Re: enforcing a join type - Mailing list pgsql-hackers

From Scott Marlowe
Subject Re: enforcing a join type
Date
Msg-id 1091659270.27166.146.camel@localhost.localdomain
Whole thread Raw
In response to enforcing a join type  ("Hicham G. Elmongui" <elmongui@cs.purdue.edu>)
Responses Re: enforcing a join type  ("Hicham G. Elmongui" <elmongui@cs.purdue.edu>)
List pgsql-hackers
On Wed, 2004-08-04 at 14:53, Hicham G. Elmongui wrote:
> Hi,
> If I want the planner/optimizer to always choose merge join when it needs to
> join relations. How can I do it ?

>From my past experience, I'd guess what you're really trying to do is
STOP the planner from choosing a nested_loop join, in which case it's
quite easy:

set enable_nestloop = off;
select * from ...

Of course, you could apply the same basic trick to all other join
methods, and postgresql would then favor using the merge join.



pgsql-hackers by date:

Previous
From: Oliver Jowett
Date:
Subject: making integer_datetimes report on startup
Next
From: "Hicham G. Elmongui"
Date:
Subject: Re: enforcing a join type