Re: pgsql: Handle the "und" locale in ICU versions 54 and older.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Handle the "und" locale in ICU versions 54 and older.
Дата
Msg-id 1862096.1679592341@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Handle the "und" locale in ICU versions 54 and older.  (Jeff Davis <jdavis@postgresql.org>)
Ответы Re: pgsql: Handle the "und" locale in ICU versions 54 and older.
Список pgsql-committers
Jeff Davis <jdavis@postgresql.org> writes:
> Handle the "und" locale in ICU versions 54 and older.
> The "und" locale is an alternative spelling of the root locale, but it
> was not recognized until ICU 55. To maintain common behavior across
> all supported ICU versions, check for "und" and replace with "root"
> before opening.

> Previously, the lack of support for "und" was dangerous, because
> versions 54 and older fall back to the environment when a locale is
> not found. If the user specified "und" for the language (which is
> expected and documented), it could not only resolve to the wrong
> collator, but it could unexpectedly change (which could lead to
> corrupt indexes).

Hmm, should we back-patch this?  Seems like existing branches would
be even more at risk than v16, because more likely to be built with
old ICU.  OTOH, we do also run the risk of breaking installations
that weren't broken before.

            regards, tom lane



В списке pgsql-committers по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: pgsql: Handle the "und" locale in ICU versions 54 and older.
Следующее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: Count updates that move row to a new page.