postgresql/src/backend
Peter Eisentraut 055fee7eb4 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
2021-03-31 17:10:50 +02:00
..
access Accept slightly-filled pages for tuples larger than fillfactor. 2021-03-30 18:53:44 -07:00
bootstrap Allow composite types in catalog bootstrap 2021-03-24 00:47:52 +01:00
catalog Allow an alias to be attached to a JOIN ... USING 2021-03-31 17:10:50 +02:00
commands Add support for asynchronous execution. 2021-03-31 18:45:00 +09:00
executor Add support for asynchronous execution. 2021-03-31 18:45:00 +09:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
lib Update copyright for 2021 2021-01-02 13:06:25 -05:00
libpq Allow matching the DN of a client certificate for authentication 2021-03-29 15:49:39 -04:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Allow an alias to be attached to a JOIN ... USING 2021-03-31 17:10:50 +02:00
optimizer Allow an alias to be attached to a JOIN ... USING 2021-03-31 17:10:50 +02:00
parser Allow an alias to be attached to a JOIN ... USING 2021-03-31 17:10:50 +02:00
partitioning ALTER TABLE ... DETACH PARTITION ... CONCURRENTLY 2021-03-25 18:00:28 -03:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
postmaster Add support for asynchronous execution. 2021-03-31 18:45:00 +09:00
regex Further tweak memory management for regex DFAs. 2021-03-08 16:32:29 -05:00
replication Add a xid argument to the filter_prepare callback for output plugins. 2021-03-30 10:34:43 +05:30
rewrite Revert "Propagate CTE property flags when copying a CTE list into a rule." 2021-02-07 12:54:08 -05:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Extended statistics on expressions 2021-03-27 00:01:11 +01:00
storage Add support for asynchronous execution. 2021-03-31 18:45:00 +09:00
tcop Extended statistics on expressions 2021-03-27 00:01:11 +01:00
tsearch Don't leak compiled regex(es) when an ispell cache entry is dropped. 2021-03-18 22:22:47 -04:00
utils Allow an alias to be attached to a JOIN ... USING 2021-03-31 17:10:50 +02:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00