Add case insensitive collation to PostgreSQL

前端 未结 2 864
时光取名叫无心
时光取名叫无心 2020-12-15 22:54

By default, PostgreSQL comes without case insensitive collations. Its documentation describes a way to add new collations based on OS locales, e.g.:

http://www.postg

相关标签:
2条回答
  • 2020-12-15 23:43

    "Nondeterministic collations" were added to Version 12:

    "The most typical use case for nondeterministic collations is probably the case-insensitive comparison. At secondary strength, strings that differ by case compare as equal"

    0 讨论(0)
  • 2020-12-15 23:52

    Doesn't seem to be possible within Postgres iteself:

    Not from the Postgres project -- we just use the collations supplied by the operating system.

    0 讨论(0)
提交回复
热议问题