pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Johnston <david.g.johnston@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12000: "CROSS JOIN" not equivalent to ","
Date: Tue, 18 Nov 2014 13:40:03 -0500
Message-ID: <17013.1416336003@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZqhtxC8O-WK8U5S93UQTNyiq1R3_UPn4WLVPU81veFVQ@mail.gmail.com>
References: <20141118171126.2479.55006@wrigleys.postgresql.org>
	<1416332559606-5827398.post@n5.nabble.com>
	<20141118175243.GD1948@alvin.alvh.no-ip.org>
	<CAKFQuwZqhtxC8O-WK8U5S93UQTNyiq1R3_UPn4WLVPU81veFVQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

David Johnston <david.g.johnston@gmail.com> writes:
> On Tuesday, November 18, 2014, Alvaro Herrera <alvherre@2ndquadrant.com>
> 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



view thread (12+ messages)  latest in thread

Message-ID: <17013.1416336003@sss.pgh.pa.us>
Permalink:  ../17013.1416336003@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17013.1416336003@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, alvherre@2ndquadrant.com
  Subject: Re: BUG #12000: "CROSS JOIN" not equivalent to ","
  In-Reply-To: <17013.1416336003@sss.pgh.pa.us>
  References: <20141118171126.2479.55006@wrigleys.postgresql.org> <1416332559606-5827398.post@n5.nabble.com> <20141118175243.GD1948@alvin.alvh.no-ip.org> <CAKFQuwZqhtxC8O-WK8U5S93UQTNyiq1R3_UPn4WLVPU81veFVQ@mail.gmail.com> <17013.1416336003@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox