sql: unclear behavior if using a collation that's not present in pg_collation #54817
Labels
A-sql-pgcatalog
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
X-blathers-triaged
blathers was able to find an owner
Describe the problem
The behavior of using a collation (
sv_x_icu
in this example) that doesn't appear inpg_collation
is unclear.To Reproduce
The collation of the
alias
column is reported as NULL:Expected behavior
The collation is reported correctly when instead using a collation that appears in
pg_collation.collname
such assv
.If
sv_x_icu
is supported, should it be present inpg_collation
? If it's not supported, perhaps an error should be reported when trying to use it inCREATE TABLE
etc.Incidentally, the CockroachDB collation docs aren't clear to me. It mentions "the BCP 47 language tag at the end of each line, immediately preceded by //" but the reference document seems to have changed since that was written as I don't see such lines. While researching this, I found a documentation issue to "Document special colations".
Environment:
Additional context
Django 3.2 adds support for column collations.
Jira issue: CRDB-3711
The text was updated successfully, but these errors were encountered: