X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AF8B432A04D for ; Fri, 8 Oct 2004 06:54:36 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90991-01 for ; Fri, 8 Oct 2004 05:54:33 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id B733C32A04A for ; Fri, 8 Oct 2004 06:54:32 +0100 (BST) Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6474953; Thu, 07 Oct 2004 22:55:55 -0700 From: Josh Berkus Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Data warehousing requirements Date: Thu, 7 Oct 2004 22:53:26 -0700 User-Agent: KMail/1.6.2 Cc: Tom Lane , Gabriele Bartolini , "Aaron Werman" References: <6.1.2.0.2.20041006230239.0201bd40@box.tin.it> <200410071550.20665.josh@agliodbs.com> <27539.1097203413@sss.pgh.pa.us> In-Reply-To: <27539.1097203413@sss.pgh.pa.us> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200410072253.26169.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/93 X-Sequence-Number: 8569 Tom, Well, I sit corrected. Obviously I misread that. > It's not so much that they are necessarily inefficient as that they > constrain the planner's freedom of action. You need to think a lot more > carefully about the order of joining than when you use inner joins. I've also found that OUTER JOINS constrain the types of joins that can/will be used as well as the order. Maybe you didn't intend it that way, but (for example) OUTER JOINs seem much more likely to use expensive merge joins. -- Josh Berkus Aglio Database Solutions San Francisco