mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 14:52:08 +02:00
27b62377b4
If the ICU locale is not specified, initialize the default collator and retrieve the locale name from that. Discussion: https://postgr.es/m/510d284759f6e943ce15096167760b2edcb2e700.camel@j-davis.com Reviewed-by: Peter Eisentraut
9 lines
263 B
Plaintext
9 lines
263 B
Plaintext
-- unaccent is broken if the default collation is provided by ICU and
|
|
-- LC_CTYPE=C
|
|
SELECT current_setting('lc_ctype') = 'C' AND
|
|
(SELECT datlocprovider='i' FROM pg_database
|
|
WHERE datname=current_database())
|
|
AS skip_test \gset
|
|
\if :skip_test
|
|
\quit
|