From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make subquery aliases optional in the FROM clause.
Date: Wed, 20 Jul 2022 08:33:10 +0000
Message-ID: <E1oE58n-000Osg-Gh@gemulon.postgresql.org> (raw)
Make subquery aliases optional in the FROM clause.
This allows aliases for sub-SELECTs and VALUES clauses in the FROM
clause to be omitted.
This is an extension of the SQL standard, supported by some other
database systems, and so eases the transition from such systems, as
well as removing the minor inconvenience caused by requiring these
aliases.
Patch by me, reviewed by Tom Lane.
Discussion: https://postgr.es/m/CAEZATCUCGCf82=hxd9N5n6xGHPyYpQnxW8HneeH+uP7yNALkWA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bcedd8f5fce0b69970cf0cee7bca560833d05869
Modified Files
--------------
doc/src/sgml/ref/select.sgml | 16 ++++++--
src/backend/parser/analyze.c | 19 ++++++---
src/backend/parser/gram.y | 44 ---------------------
src/backend/parser/parse_clause.c | 18 +++------
src/backend/parser/parse_relation.c | 29 ++++++++++----
src/backend/utils/adt/ruleutils.c | 6 ++-
src/include/parser/parse_node.h | 7 +++-
src/interfaces/ecpg/preproc/ecpg.addons | 6 ---
src/test/regress/expected/subselect.out | 69 +++++++++++++++++++++++++++++++++
src/test/regress/sql/subselect.sql | 31 +++++++++++++++
10 files changed, 164 insertions(+), 81 deletions(-)
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-committers@postgresql.org
Cc: dean.a.rasheed@gmail.com
Subject: Re: pgsql: Make subquery aliases optional in the FROM clause.
In-Reply-To: <E1oE58n-000Osg-Gh@gemulon.postgresql.org>
References: <E1oE58n-000Osg-Gh@gemulon.postgresql.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