Re: advice on query joining 10 tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gerardo Herzig <gherzig(at)fmed(dot)uba(dot)ar>
Cc: postgres list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: advice on query joining 10 tables
Date: 2010-05-10 20:11:25
Message-ID: 16630.1273522285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Gerardo Herzig <gherzig(at)fmed(dot)uba(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Marlowe 2010-05-10 20:37:38 Re: advice on query joining 10 tables
Previous Message Gerardo Herzig 2010-05-10 18:40:12 advice on query joining 10 tables