Re: Order changes in PG16 since ICU introduction

Поиск
Список
Период
Сортировка
Искать
От
Daniel Verite
Тема
Re: Order changes in PG16 since ICU introduction
Дата
в 16:24:35
Msg-id
a6204a46-c077-451b-8f9d-8965d95bb57c@manitou-mail.org
Ответ на
Список
Дерево обсуждения
Order changes in PG16 since ICU introduction "Regina Obe" <lr@pcorp.us>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
Re: Order changes in PG16 since ICU introduction Sandro Santilli <strk@kbt.io>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
RE: Order changes in PG16 since ICU introduction "Regina Obe" <lr@pcorp.us>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
RE: Order changes in PG16 since ICU introduction "Regina Obe" <lr@pcorp.us>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
RE: Order changes in PG16 since ICU introduction "Regina Obe" <lr@pcorp.us>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction "Daniel Verite" <daniel@manitou-mail.org>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
Re: Order changes in PG16 since ICU introduction Robert Haas <robertmhaas@gmail.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
RE: Order changes in PG16 since ICU introduction "Regina Obe" <lr@pcorp.us>
Re: Order changes in PG16 since ICU introduction Robert Haas <robertmhaas@gmail.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction "Jonathan S. Katz" <jkatz@postgresql.org>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction "Jonathan S. Katz" <jkatz@postgresql.org>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction "Jonathan S. Katz" <jkatz@postgresql.org>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Order changes in PG16 since ICU introduction Tom Lane <tgl@sss.pgh.pa.us>
Re: Order changes in PG16 since ICU introduction Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction "Daniel Verite" <daniel@manitou-mail.org>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction "Daniel Verite" <daniel@manitou-mail.org>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction "Daniel Verite" <daniel@manitou-mail.org>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Joe Conway <mail@joeconway.com>
Re: Order changes in PG16 since ICU introduction Sandro Santilli <strk@kbt.io>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
Re: Order changes in PG16 since ICU introduction Sandro Santilli <strk@kbt.io>
Re: Order changes in PG16 since ICU introduction Jeff Davis <pgsql@j-davis.com>
	Jeff Davis wrote:

> > #1
> > 
> > postgres=# create database test1 locale='fr_FR.UTF-8';
> > NOTICE:  using standard form "fr-FR" for ICU locale "fr_FR.UTF-8"
> > ERROR:  new ICU locale (fr-FR) is incompatible with the ICU locale of
> 
> I don't see a problem here. If you specify LOCALE to CREATE DATABASE,
> you should either be using "TEMPLATE template0", or you should be
> expecting an error if the LOCALE doesn't match exactly.
> 
> What would you like to see happen here?

What's odd is that initdb starting in an fr_FR.UTF-8 environment
found that "fr" was the default ICU locale to use, whereas
"create database" reports that "fr" and "fr_FR.UTF-8" refer to
incompatible locales.

To me initdb is wrong when coming up with the less precise "fr"
instead of "fr-FR".

I suggest the attached patch to call uloc_getDefault() instead of the
current code that somehow leaves out the country/region component.


Best regards,
-- 
Daniel Vérité
https://postgresql.verite.pro/
Twitter: @DanielVerite
В списке pgsql-hackers по дате отправления
От: Kaiting Chen
Дата:
От: Tom Lane
Дата:
FAQ