Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XqnhI-0006LB-F9 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Nov 2014 18:40:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XqnhH-0003kG-Vd for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Nov 2014 18:40:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XqnhH-0003jm-7a for pgsql-bugs@postgresql.org; Tue, 18 Nov 2014 18:40:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XqnhE-00036v-4n for pgsql-bugs@postgresql.org; Tue, 18 Nov 2014 18:40:13 +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 sAIIe32s017014; Tue, 18 Nov 2014 13:40:03 -0500 From: Tom Lane To: David Johnston cc: Alvaro Herrera , "pgsql-bugs@postgresql.org" Subject: Re: BUG #12000: "CROSS JOIN" not equivalent to "," In-reply-to: References: <20141118171126.2479.55006@wrigleys.postgresql.org> <1416332559606-5827398.post@n5.nabble.com> <20141118175243.GD1948@alvin.alvh.no-ip.org> Comments: In-reply-to David Johnston message dated "Tue, 18 Nov 2014 11:01:48 -0700" Date: Tue, 18 Nov 2014 13:40:03 -0500 Message-ID: <17013.1416336003@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 Johnston writes: > On Tuesday, November 18, 2014, Alvaro Herrera > wrote: >> Note that using explicit join form force the optimizer into some >> specific join order, depending on the join_collapse_limit parameter, >> whereas using commas gives it absolute freedom regardless of the >> parameter. > Only because the parameter used in that case is "from_collapse_limit"... IIRC, from_collapse_limit only affects the behavior when deciding whether to collapse a mixture of JOIN and comma syntax; it does not change the outcome if you write a whole bunch of tables in a comma-separated list to start with. In any case, such implementation artifacts shouldn't drive our consideration of what's the clearest way to document this SQL-standard behavior. 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