From: | Vik Fearing <vik(dot)fearing(at)2ndquadrant(dot)com> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Join Correlation Name |
Date: | 2019-10-29 11:51:26 |
Message-ID: | 25fea7ef-4672-fed0-f655-b9bbda118b79@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 29/10/2019 12:05, Peter Eisentraut wrote:
> On 2019-10-29 11:47, Vik Fearing wrote:
>> When joining tables with USING, the listed columns are merged and no
>> longer belong to either the left or the right side. That means they can
>> no longer be qualified which can often be an inconvenience.
>>
>>
>> SELECT a.x, b.y, z FROM a INNER JOIN b USING (z);
>>
>>
>> The SQL standard provides a workaround for this by allowing an alias on
>> the join clause. (<join correlation name> in section 7.10)
>>
>>
>> SELECT j.x, j.y, j.z FROM a INNER JOIN b USING (z) AS j;
>>
>>
>> Attached is a patch (based on 517bf2d910) adding this feature.
>
> Is this the same as https://commitfest.postgresql.org/25/2158/ ?
Crap. Yes, it is.
From | Date | Subject | |
---|---|---|---|
Next Message | Vik Fearing | 2019-10-29 11:55:46 | Re: Join Correlation Name |
Previous Message | Isaac Morland | 2019-10-29 11:24:28 | Re: Join Correlation Name |