Re: ICU for global collation
От
Daniel Verite
Тема
Re: ICU for global collation
Дата
Msg-id
809c0fba-b0e6-44bf-b110-0886cb462aab@manitou-mail.org
Ответ на
Re: ICU for global collation (Peter Eisentraut)
Список
Дерево обсуждения
ICU for global collation Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: ICU for global collation Andrey Borodin <x4mmm@yandex-team.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: ICU for global collation Andrey Borodin <x4mmm@yandex-team.ru>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation Marius Timmer <marius.timmer@uni-muenster.de>
Re: ICU for global collation Thomas Munro <thomas.munro@gmail.com>
Re: ICU for global collation Thomas Munro <thomas.munro@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation "Finnerty, Jim" <jfinnert@amazon.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Justin Pryzby <pryzby@telsasoft.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Michael Paquier <michael@paquier.xyz>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Justin Pryzby <pryzby@telsasoft.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Michael Paquier <michael@paquier.xyz>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Michael Paquier <michael@paquier.xyz>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Michael Paquier <michael@paquier.xyz>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Justin Pryzby <pryzby@telsasoft.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Marina Polyakova <m.polyakova@postgrespro.ru>
Re: ICU for global collation Michael Paquier <michael@paquier.xyz>
Re: ICU for global collation Michael Paquier <michael@paquier.xyz>
Re: ICU for global collation Michael Paquier <michael@paquier.xyz>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
RE: ICU for global collation "Shinoda, Noriyoshi (PN Japan FSIP)" <noriyoshi.shinoda@hpe.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Andres Freund <andres@anarazel.de>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation Andres Freund <andres@anarazel.de>
Re: ICU for global collation Peter Geoghegan <pg@bowt.ie>
Re: ICU for global collation Robert Haas <robertmhaas@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation Robert Haas <robertmhaas@gmail.com>
Re: ICU for global collation Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: ICU for global collation "Finnerty, Jim" <jfinnert@amazon.com>
Re: ICU for global collation "Daniel Verite" <daniel@manitou-mail.org>
Re: ICU for global collation "Finnerty, Jim" <jfinnert@amazon.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Re: ICU for global collation "Finnerty, Jim" <jfinnert@amazon.com>
Re: ICU for global collation Julien Rouhaud <rjuju123@gmail.com>
Peter Eisentraut wrote: > Unlike in the previous patch, where the ICU > collation name was written in datcollate, there is now a third column > (daticucoll), so we can store all three values. I think some users would want their db-wide ICU collation to be case/accent-insensitive. Postgres users are trained to expect case-sensitive comparisons, but some apps initially made for e.g. MySQL or MS-SQL that use such collations natively would be easier to port to Postgres. IIRC, that was the context for some questions where people were enquiring about db-wide ICU collations. With the current patch, it's not possible, AFAICS, because the user can't tell that the collation is non-deterministic. Presumably this would require another option to CREATE DATABASE and another column to store that bit of information. The "daticucol" column also suggests that we don't expect to add other collation providers in the future. Maybe a pair of columns like (datcollprovider, datcolllocale) would be more future-proof, or a (datcollprovider, datcolllocale, datcollisdeterministic) triplet if non-deterministic collations are allowed. Also, pg_collation has "collversion" to detect a mismatch between the ICU runtime and existing indexes. I don't see that field for the db-wide ICU collation, so maybe we currently miss the capability to detect the mismatch for the db-wide collation? The lack of these fields overall suggest the idea that when CREATE DATABASE is called with a global ICU collation, what if it somehow inserted the collation into pg_collation in the new database? Then pg_database would just store the collation oid and no other collation-related field would need to be added into it, now or in the future. Best regards, -- Daniel Vérité PostgreSQL-powered mailer: https://www.manitou-mail.org Twitter: @DanielVerite
В списке pgsql-hackers по дате отправления
От: Thomas Munro
Дата:
От: Amit Kapila
Дата: