pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add p_names field to ParseNamespaceItem
Date: Wed, 31 Mar 2021 09:22:05 +0000
Message-ID: <E1lRX37-00083H-0M@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1lRX37-00083H-0M@gemulon.postgresql.org>
Permalink:  ../E1lRX37-00083H-0M@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lRX37-00083H-0M@gemulon.postgresql.org

 · 

reply

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: peter@eisentraut.org
  Subject: Re: pgsql: Add p_names field to ParseNamespaceItem
  In-Reply-To: <E1lRX37-00083H-0M@gemulon.postgresql.org>
  References: <E1lRX37-00083H-0M@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