[prev in list] [next in list] [prev in thread] [next in thread]
List: pgsql-committers
Subject: pgsql: Add p_names field to ParseNamespaceItem
From: Peter Eisentraut <peter () eisentraut ! org>
Date: 2021-03-31 9:22:05
Message-ID: E1lRX37-00083H-0M () gemulon ! postgresql ! org
[Download RAW message or body]
[Attachment #2 (text/plain)]
Add p_names field to ParseNamespaceItem
ParseNamespaceItem had a wired-in assumption that p_rte->eref
describes the table and column aliases exposed by the nsitem. This
relaxes this by creating a separate p_names field in an nsitem. This
is mainly preparation for a patch for JOIN USING aliases, but it saves
one indirection in common code paths, so it's possibly a win on its
own.
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/785329.1616455091@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/66392d396508c91c2ec07a61568bf96acb663ad8
Modified Files
--------------
src/backend/parser/parse_clause.c | 6 +++---
src/backend/parser/parse_relation.c | 29 +++++++++++++++++------------
src/include/parser/parse_node.h | 10 ++++++++--
3 files changed, 28 insertions(+), 17 deletions(-)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic