pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: syntax of joins
Date: Fri, 06 Apr 2012 14:14:40 -0600
Message-ID: <4F7F4EB0.6050902@gmail.com> (raw)
In-Reply-To: <CAFj8pRAeQO6cJRTWQdp+LsTS8aK+LpQwRLP1cv5PPc=Fsh+VSw@mail.gmail.com>
References: <4F7F3CD9.9090103@gmx.net>
	<CAFj8pRBc2Qa+_Zap_8VqOQzjaYWXtkajjhKePKs9pYGnkcoX+w@mail.gmail.com>
	<4F7F43C8.4010204@gmail.com>
	<CAFj8pRAeQO6cJRTWQdp+LsTS8aK+LpQwRLP1cv5PPc=Fsh+VSw@mail.gmail.com>

On 04/06/2012 01:46 PM, Pavel Stehule wrote:
> 2012/4/6 Rob Sargent<robjsargent@gmail.com>:
>> On 04/06/2012 01:23 PM, Pavel Stehule wrote:
>>>
>>> Hello
>>>
>>> 2012/4/6 Andreas<maps.on@gmx.net>:
>>>>
>>>> hi,
>>>>
>>>> is there a disadvantage to write a join as
>>>>
>>>> select   *
>>>> from    a, b
>>>> where  a.id = b.a_id;
>>>>
>>>
>>>> over
>>>>
>>>> select   *
>>>> from    a join b  on  a.id = b.a_id;
>>>>
>>>
>>> yes - newer notation has some advantages
>>>
>>> * clean specification join predicate and filter predicate
>>> * simple adaptability to outer join
>>> * increased protection against copy/paste bug that introduce Cartesian
>>> product
>>>
>>> Regards
>>>
>>> Pavel Stehule
>>>
>>>> --
>>>> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
>>>> To make changes to your subscription:
>>>> http://www.postgresql.org/mailpref/pgsql-sql
>>>
>>>
>> In other words, no disadvantage :)
>>
>
> Hard to say - for man who fixed critical cartesian products :) in queries
>
> Pavel

but doesn't there remain "a join b on a.id != b.id"

(I do use the join syntax -- sometimes, honest)

rjs



view thread (5+ messages)

Message-ID: <4F7F4EB0.6050902@gmail.com>
Permalink:  ../4F7F4EB0.6050902@gmail.com/
Also on:    postgresql.org/message-id/4F7F4EB0.6050902@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: robjsargent@gmail.com, pavel.stehule@gmail.com
  Subject: Re: syntax of joins
  In-Reply-To: <4F7F4EB0.6050902@gmail.com>

* 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