pgsql: Fix collation of expressions in GRAPH_TABLE COLUMNS clause - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Fix collation of expressions in GRAPH_TABLE COLUMNS clause
Date
Msg-id E1wGALj-002T7s-2U@gemulon.postgresql.org
Whole thread
List pgsql-committers
Fix collation of expressions in GRAPH_TABLE COLUMNS clause

GRAPH_TABLE clause is converted into a rangetable entry, which is
ignored by assign_query_collations().  Hence we assign collations
while transforming its parts.  But expressions in COLUMNS clause
missed that treatment, so fix that.

While at it, also add comments about collation assignment to the parts
of GRAPH_TABLE clause, and also fix a small grammar issue.

Reported-by: Satyanarayana Narlapuram <satyanarlapuram@gmail.com>
Author: Satyanarayana Narlapuram <satyanarlapuram@gmail.com>
Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAHg+QDc4aaiufYSgrwMMPMMRTPtQ66SghcrPFbWJFZMqNaG+BA@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/parser/parse_clause.c         |  6 ++++++
src/backend/parser/parse_graphtable.c     | 12 +++++++++++-
src/test/regress/expected/graph_table.out |  8 ++++----
src/test/regress/sql/graph_table.sql      |  4 ++--
4 files changed, 23 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix typos and grammar in graph table rewrite code
Next
From: Peter Eisentraut
Date:
Subject: pgsql: pg_get_viewdef() and lateral references in COLUMNS of GRAPH_TABL