X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A1A56D1C90E for ; Wed, 30 Jul 2003 19:39:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 82902-06 for ; Wed, 30 Jul 2003 16:38:50 -0300 (ADT) Received: from davinci.ethosmedia.com (209-128-84-228.bayarea.net [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 9DB23D1C977 for ; Wed, 30 Jul 2003 16:39:49 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3361662; Wed, 30 Jul 2003 12:40:10 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Richard Huxton , Jamie Lawrence , pgsql-sql@postgresql.org Subject: Re: Fwd: Bad Join moment - how is this happening? Date: Wed, 30 Jul 2003 12:38:48 -0700 User-Agent: KMail/1.4.3 References: <20030730200732.GW1073@jal.clueinc.net> <200307302036.22095.dev@archonet.com> In-Reply-To: <200307302036.22095.dev@archonet.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200307301238.48616.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/467 X-Sequence-Number: 14581 Richard, > I think this is the "adding a table into the FROM" feature of PG. You're= =20 > referring to documents.xxx in the select and d.id in the FROM. PG tries t= o=20 > help out by adding the table into the FROM for you - hence cartesian join. Aha! You're right. > I think you can turn this "feature" off in the config file in 7.3.x (have= n't=20 > checked this though) Nope, it's a 7.4 feature to turn it off in .conf. Look under the=20 "compatibility" section (the last section) in 7.4's postgresql.conf. --=20 -Josh Berkus Aglio Database Solutions San Francisco