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: Property references are preferred over regular column references
Date: Tue, 31 Mar 2026 09:53:08 +0000
Message-ID: <E1w7VmV-002I3V-0Y@gemulon.postgresql.org> (raw)

Property references are preferred over regular column references

When a ColumnRef can be resolved as a graph table property reference
and a lateral table column reference prefer the graph table property
reference since element pattern variables in the GRAPH_TABLE clause
form the innermost namespace.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Henson Choi <assam258@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAExHW5u6AoDfNg4%3DR5eVJn_bJn%3DC%3DwVPrto02P_06fxy39fniA%40ma...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5b3253b8abd7b89689d1095c7c1154b784ca9c9

Modified Files
--------------
src/backend/parser/parse_expr.c           | 14 ++++++++++----
src/test/regress/expected/graph_table.out | 18 ++++++++++++++----
src/test/regress/sql/graph_table.sql      |  6 +++++-
3 files changed, 29 insertions(+), 9 deletions(-)



Message-ID: <E1w7VmV-002I3V-0Y@gemulon.postgresql.org>
Permalink:  ../E1w7VmV-002I3V-0Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w7VmV-002I3V-0Y@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Property references are preferred over regular column references
  In-Reply-To: <E1w7VmV-002I3V-0Y@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