Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 4A34F18E38D9 for ; Thu, 12 Jan 2012 10:11:21 -0400 (AST) Received: from mail.fmed.uba.ar ([157.92.152.1]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RlLN6-00038T-PS for pgsql-sql@postgresql.org; Thu, 12 Jan 2012 14:11:21 +0000 Received: from [157.92.152.105] (unknown [157.92.152.105]) by mail.fmed.uba.ar (Postfix) with ESMTP id 785E64A4205; Thu, 12 Jan 2012 11:06:48 -0200 (ARST) Subject: Re: amount of join's and sequential access to the tables involved From: Gerardo Herzig To: Tom Lane Cc: pgsql-sql@postgresql.org In-Reply-To: <20152.1326296428@sss.pgh.pa.us> References: <1326296192.24629.12.camel@inca.fmed.uba.ar> <20152.1326296428@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Thu, 12 Jan 2012 11:09:55 -0300 Message-ID: <1326377395.1877.1.camel@inca.fmed.uba.ar> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201201/45 X-Sequence-Number: 36216 El mi=C3=A9, 11-01-2012 a las 10:40 -0500, Tom Lane escribi=C3=B3: > Gerardo Herzig writes: > > Hi all. Im working on a 'simple' query with 7, 8 left joins. After th= e > > 9nth join or so, explain analyze became to show the plan with many > > tables being read in sequential fashion. Of course, this slows down t= he > > query response in a factor on 10. >=20 > increase join_collapse_limit, perhaps? >=20 > regards, tom lane >=20 Im sory Tom and all, again stuck with this. Now i have 9 joins, and join_collapse_limit =3D 20, and the query slows down big time when the 9t= h join appears. Another configuration variable to check against? Thanks again. Gerardo