Re: advice on query joining 10 tables - Mailing list pgsql-sql

From Tom Lane
Subject Re: advice on query joining 10 tables
Date
Msg-id 16630.1273522285@sss.pgh.pa.us
Whole thread Raw
In response to advice on query joining 10 tables  (Gerardo Herzig <gherzig@fmed.uba.ar>)
List pgsql-sql
Gerardo Herzig <gherzig@fmed.uba.ar> writes:
> Hi all. Im triyng to see if i can improve the performance of a query
> (mainly a 10 table join)

One easy thing to try is increase from_collapse_limit and/or
join_collapse_limit to 10 or more.  That will result in longer planning
time but might let the planner find a better plan for this query.
        regards, tom lane


pgsql-sql by date:

Previous
From: Gerardo Herzig
Date:
Subject: advice on query joining 10 tables
Next
From: Scott Marlowe
Date:
Subject: Re: advice on query joining 10 tables