Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B2BCF6322AE for ; Thu, 9 Sep 2010 10:50:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 55095-03 for ; Thu, 9 Sep 2010 13:49:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 4DDD363220D for ; Thu, 9 Sep 2010 10:49:53 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o89DnjJq027782; Thu, 9 Sep 2010 09:49:46 -0400 (EDT) To: "Marc Mamin" cc: pgsql-sql@postgresql.org Subject: Re: Controlling join order with parenthesis In-reply-to: References: Comments: In-reply-to "Marc Mamin" message dated "Thu, 09 Sep 2010 14:51:27 +0200" Date: Thu, 09 Sep 2010 09:49:45 -0400 Message-ID: <27781.1284040185@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/21 X-Sequence-Number: 34552 "Marc Mamin" writes: > According to the documentation, I thought it was possible to force given > join orders with parenthesis. You can do that if you dial down join_collapse_limit. Bear in mind that leaves you *solely* responsible for picking an intelligent join order. I wouldn't recommend it as a production setting. regards, tom lane