Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xqn0V-0004kC-Kp for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Nov 2014 17:56:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xqn0V-0003Yy-5p for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Nov 2014 17:56:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xqn0U-0003Ys-JH for pgsql-bugs@postgresql.org; Tue, 18 Nov 2014 17:56:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xqn0N-0002cI-Eg for pgsql-bugs@postgresql.org; Tue, 18 Nov 2014 17:56:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sAIHtpr6013990; Tue, 18 Nov 2014 12:55:51 -0500 From: Tom Lane To: David G Johnston cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12000: "CROSS JOIN" not equivalent to "," In-reply-to: <1416332994261-5827399.post@n5.nabble.com> References: <20141118171126.2479.55006@wrigleys.postgresql.org> <2468.1416331743@sss.pgh.pa.us> <1416332994261-5827399.post@n5.nabble.com> Comments: In-reply-to David G Johnston message dated "Tue, 18 Nov 2014 10:49:54 -0700" Date: Tue, 18 Nov 2014 12:55:51 -0500 Message-ID: <13989.1416333351@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David G Johnston writes: > Tom Lane-2 wrote >> A simple "fix" would be to remove the claim about "," and just compare >> CROSS JOIN to INNER JOIN ON TRUE. I'm not really convinced that's an >> improvement ... > How about adding the following to that sentence: > "However, in the presence of three or more joined relations it is > recommended to only use either explicit joins or commas since mixing them > introduces non-obvious join order differences." I don't think it's the place of the manual to be prescriptive about style; at least, not here. We could do something like " is equivalent to . is also equivalent to , but in cases with more than two tables this equivalence is not exact, because JOIN binds more tightly than comma." Or maybe put the "but" in a footnote. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs