git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f6f0db4) | patch
Add option to use ICU as global locale provider
2022年3月17日 10:11:21 +0000 (11:11 +0100)
2022年3月17日 10:13:16 +0000 (11:13 +0100)
commit f2553d43060edb210b36c63187d52a632448e1d2
Add option to use ICU as global locale provider

This adds the option to use ICU as the default locale provider for
either the whole cluster or a database. New options for initdb,
createdb, and CREATE DATABASE are used to select this.

Since some (legacy) code still uses the libc locale facilities
directly, we still need to set the libc global locale settings even if
ICU is otherwise selected. So pg_database now has three
locale-related fields: the existing datcollate and datctype, which are
always set, and a new daticulocale, which is only set if ICU is
selected. A similar change is made in pg_collation for consistency,
but in that case, only the libc-related fields or the ICU-related
field is set, never both.

Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5e756dd6-0e91-d778-96fd-b1bcb06c161a%402ndquadrant.com
35 files changed:
doc/src/sgml/catalogs.sgml diff | blob | blame | history
doc/src/sgml/charset.sgml diff | blob | blame | history
doc/src/sgml/ref/create_database.sgml diff | blob | blame | history
doc/src/sgml/ref/createdb.sgml diff | blob | blame | history
doc/src/sgml/ref/initdb.sgml diff | blob | blame | history
src/backend/catalog/pg_collation.c diff | blob | blame | history
src/backend/commands/collationcmds.c diff | blob | blame | history
src/backend/commands/dbcommands.c diff | blob | blame | history
src/backend/utils/adt/pg_locale.c diff | blob | blame | history
src/backend/utils/init/postinit.c diff | blob | blame | history
src/bin/initdb/Makefile diff | blob | blame | history
src/bin/initdb/initdb.c diff | blob | blame | history
src/bin/initdb/t/001_initdb.pl diff | blob | blame | history
src/bin/pg_dump/pg_dump.c diff | blob | blame | history
src/bin/pg_upgrade/check.c diff | blob | blame | history
src/bin/pg_upgrade/info.c diff | blob | blame | history
src/bin/pg_upgrade/pg_upgrade.h diff | blob | blame | history
src/bin/psql/describe.c diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
src/bin/scripts/Makefile diff | blob | blame | history
src/bin/scripts/createdb.c diff | blob | blame | history
src/bin/scripts/t/020_createdb.pl diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/catalog/pg_collation.dat diff | blob | blame | history
src/include/catalog/pg_collation.h diff | blob | blame | history
src/include/catalog/pg_database.dat diff | blob | blame | history
src/include/catalog/pg_database.h diff | blob | blame | history
src/include/utils/pg_locale.h diff | blob | blame | history
src/test/Makefile diff | blob | blame | history
src/test/icu/.gitignore [new file with mode: 0644] blob
src/test/icu/Makefile [new file with mode: 0644] blob
src/test/icu/README [new file with mode: 0644] blob
src/test/icu/t/010_database.pl [new file with mode: 0644] blob
src/test/regress/expected/collate.icu.utf8.out diff | blob | blame | history
src/test/regress/sql/collate.icu.utf8.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /