From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gerardo Herzig <gherzig@fmed.uba.ar>
Cc: postgres list <pgsql-sql@postgresql.org>
Subject: Re: advice on query joining 10 tables
Date: Mon, 10 May 2010 16:11:25 -0400
Message-ID: <16630.1273522285@sss.pgh.pa.us> (raw)
In-Reply-To: <4BE8530C.6030605@fmed.uba.ar>
References: <4BE8530C.6030605@fmed.uba.ar>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, gherzig@fmed.uba.ar
Subject: Re: advice on query joining 10 tables
In-Reply-To: <16630.1273522285@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox