Fix collation of expressions in GRAPH_TABLE COLUMNS clause
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-04-24T06:43:26Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_clause.c | modified | +6 −0 |
| src/backend/parser/parse_graphtable.c | modified | +11 −1 |
| src/test/regress/expected/graph_table.out | modified | +4 −4 |
| src/test/regress/sql/graph_table.sql | modified | +2 −2 |
Discussion
- Bug: Missing collation assignment for GRAPH_TABLE COLUMNS expressions 6 messages · 2026-04-10 → 2026-04-24