Re: Want to use my own query-plan - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Want to use my own query-plan
Date
Msg-id 20061021213634.GB27685@alvh.no-ip.org
Whole thread Raw
In response to Re: Want to use my own query-plan  (dakotali kasap <dakotalidavid@yahoo.com>)
List pgsql-hackers
dakotali kasap wrote:

>  Therefore, I want to say the join-method that
> will be used or which relation will be outer which one will be inner.
> (I cannot do this just using SELECT * FROM a JOIN b).

You can't force the system to use a particular join method, but you can
select which one is inner and which one is outer -- you just need to set
join_collapse_limit to 1, and write the query in the specific order you
want.  See

http://momjian.us/main/writings/pgsql/sgml/runtime-config-query.html#RUNTIME-CONFIG-QUERY-OTHER

and 

http://momjian.us/main/writings/pgsql/sgml/explicit-joins.html

(sorry, pointers to development-version docs).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Updates for vcbuild
Next
From: "Dave Page"
Date:
Subject: FW: [pgadmin-hackers] FW: adminpack and pg_catalog