mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Allow an alias to be attached to a JOIN ... USING
This allows something like
SELECT ... FROM t1 JOIN t2 USING (a, b, c) AS x
where x has the columns a, b, c and unlike a regular alias it does not
hide the range variables of the tables being joined t1 and t2.
Per SQL:2016 feature F404 "Range variable for common column names".
Reviewed-by: Vik Fearing <vik.fearing@2ndquadrant.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/454638cf-d563-ab76-a585-2564428062af@2ndquadrant.com
This commit is contained in:
@@ -264,7 +264,7 @@ F401 Extended joined table 02 FULL OUTER JOIN YES
|
||||
F401 Extended joined table 04 CROSS JOIN YES
|
||||
F402 Named column joins for LOBs, arrays, and multisets YES
|
||||
F403 Partitioned joined tables NO
|
||||
F404 Range variable for common column names NO
|
||||
F404 Range variable for common column names YES
|
||||
F411 Time zone specification YES differences regarding literal interpretation
|
||||
F421 National character YES
|
||||
F431 Read-only scrollable cursors YES
|
||||
|
||||
Reference in New Issue
Block a user