mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
eccfef81e1
Add a column collprovider to pg_collation that determines which library provides the collation data. The existing choices are default and libc, and this adds an icu choice, which uses the ICU4C library. The pg_locale_t type is changed to a union that contains the provider-specific locale handles. Users of locale information are changed to look into that struct for the appropriate handle to use. Also add a collversion column that records the version of the collation when it is created, and check at run time whether it is still the same. This detects potentially incompatible library upgrades that can corrupt indexes and other structures. This is currently only supported by ICU-provided collations. initdb initializes the default collation set as before from the `locale -a` output but also adds all available ICU locales with a "-x-icu" appended. Currently, ICU-provided collations can only be explicitly named collations. The global database locales are still always libc-provided. ICU support is enabled by configure --with-icu. Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com> Reviewed-by: Andreas Karlsson <andreas@proxel.se>
14 lines
412 B
Plaintext
14 lines
412 B
Plaintext
dnl aclocal.m4
|
|
m4_include([config/ac_func_accept_argtypes.m4])
|
|
m4_include([config/ax_pthread.m4])
|
|
m4_include([config/c-compiler.m4])
|
|
m4_include([config/c-library.m4])
|
|
m4_include([config/docbook.m4])
|
|
m4_include([config/general.m4])
|
|
m4_include([config/libtool.m4])
|
|
m4_include([config/perl.m4])
|
|
m4_include([config/pkg.m4])
|
|
m4_include([config/programs.m4])
|
|
m4_include([config/python.m4])
|
|
m4_include([config/tcl.m4])
|