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

David G Johnston wrote:

> I personally find the use of "," in the FROM-clause to be poor form and its
> even worse if you decide to mix both "," and explicit JOIN clauses.  If you
> want to make this be explained better feel free to provide suggestions; but
> I'd suggest you simply forget the fact that "FROM A, B" is even valid and
> just use the proper joining keywords instead.  

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.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
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: <20141118175243.GD1948@alvin.alvh.no-ip.org>
Permalink:  ../20141118175243.GD1948@alvin.alvh.no-ip.org/
Also on:    postgresql.org/message-id/20141118175243.GD1948@alvin.alvh.no-ip.org

 · 

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: alvherre@2ndquadrant.com, david.g.johnston@gmail.com
  Subject: Re: BUG #12000: "CROSS JOIN" not equivalent to ","
  In-Reply-To: <20141118175243.GD1948@alvin.alvh.no-ip.org>
  References: <20141118171126.2479.55006@wrigleys.postgresql.org> <1416332559606-5827398.post@n5.nabble.com> <20141118175243.GD1948@alvin.alvh.no-ip.org>

* 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