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 55B8730EF00 for ; Mon, 16 Jun 2003 22:41:16 +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 35045-09 for ; Mon, 16 Jun 2003 19:41:05 -0300 (ADT) Received: from flake.decibel.org (flake.decibel.org [66.143.173.58]) by svr1.postgresql.org (Postfix) with SMTP id 5173D30EF8C for ; Mon, 16 Jun 2003 19:41:05 -0300 (ADT) Received: (qmail 48144 invoked by uid 1001); 16 Jun 2003 22:41:05 -0000 Date: Mon, 16 Jun 2003 17:41:05 -0500 From: "Jim C. Nasby" To: pgsql-performance@postgresql.org Subject: Re: left join performance problem Message-ID: <20030616224105.GL40542@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> <20030616001028.Q66185@flake.decibel.org> <26714.1055741306@sss.pgh.pa.us> <20030616003629.T66185@flake.decibel.org> <2363.1055769973@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2363.1055769973@sss.pgh.pa.us> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-RELEASE i386 X-Distributed: Join the Effort! http://www.distributed.net X-Archive-Number: 200306/104 X-Sequence-Number: 2188 On Mon, Jun 16, 2003 at 09:26:13AM -0400, Tom Lane wrote: > "Jim C. Nasby" writes: > > On Mon, Jun 16, 2003 at 01:28:26AM -0400, Tom Lane wrote: > >> "Jim C. Nasby" writes: > > 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? > >> > >> No ... because it's already DONE. > > > DOH, I forgot about the subselect trick. Nevermind. > > No, I wasn't talking about that. See > http://developer.postgresql.org/docs/postgres/explicit-joins.html > for the way it works in CVS tip. Ahh, cool. BTW, I think it should be prominently mentioned in http://developer.postgresql.org/docs/postgres/sql-select.html#SQL-FROM that ANSI join syntax can force join order, since most DBA's unfamiliar with pgsql probably won't be expecting that. -- 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?"