pgsql: Fix collation of expressions in GRAPH_TABLE COLUMNS clause

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix collation of expressions in GRAPH_TABLE COLUMNS clause
Дата
Msg-id E1wGALj-002T7s-2U@gemulon.postgresql.org
обсуждение
Список 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 по дате отправления: