X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 1D3F630EC38 for ; Mon, 16 Jun 2003 05:10:50 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 26438-09 for ; Mon, 16 Jun 2003 02:10:39 -0300 (ADT) Received: from flake.decibel.org (flake.decibel.org [66.143.173.58]) by svr1.postgresql.org (Postfix) with SMTP id 2607530EC10 for ; Mon, 16 Jun 2003 02:10:34 -0300 (ADT) Received: (qmail 7221 invoked by uid 1001); 16 Jun 2003 05:10:28 -0000 Date: Mon, 16 Jun 2003 00:10:28 -0500 From: "Jim C. Nasby" To: pgsql-performance@postgresql.org Subject: Re: left join performance problem Message-ID: <20030616001028.Q66185@flake.decibel.org> Reply-To: jim@nasby.net References: <3EE74C2D.88390062@t1.unisoftbg.com> <26068.1055386671@sss.pgh.pa.us> <3EE8061B.1FAED8AD@t1.unisoftbg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3EE8061B.1FAED8AD@t1.unisoftbg.com>; from pginfo@t1.unisoftbg.com on Thu, Jun 12, 2003 at 06:48:27AM +0200 X-Operating-System: FreeBSD 4.8-RELEASE i386 X-Distributed: Join the Effort! http://www.distributed.net X-Archive-Number: 200306/73 X-Sequence-Number: 2157 On Thu, Jun 12, 2003 at 06:48:27AM +0200, pginfo wrote: > Many thanks Tom, > the doc do not contain solution for this case, but the idea to > change the join order was excelent and all is working fine at the moment. Any chance of getting a TODO added that would provide the option of having the optimizer pick join order when you're using the ANSI join syntax? IMHO I think it's bad that using the ANSI syntax forces join order; it would be much better to come up with a custom syntax for this like everyone else does. But I'm sure people won't want to change the existing behavior, so special syntax to do the opposite is almost as good. -- Jim C. Nasby (aka Decibel!) jim@nasby.net Member: Triangle Fraternity, Sports Car Club of America Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"