mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
CREATE DATABASE: make LOCALE apply to all collation providers.
For CREATE DATABASE, make LOCALE parameter apply regardless of the provider used. Also affects initdb and createdb --locale arguments. Previously, LOCALE (and --locale) only affected the database default collation when using the libc provider. Discussion: https://postgr.es/m/1a63084d-221e-4075-619e-6b3e590f673e@enterprisedb.com Reviewed-by: Peter Eisentraut
This commit is contained in:
@@ -276,7 +276,7 @@ DefineCollation(ParseState *pstate, List *names, List *parameters, bool if_not_e
|
||||
if (langtag && strcmp(colliculocale, langtag) != 0)
|
||||
{
|
||||
ereport(NOTICE,
|
||||
(errmsg("using standard form \"%s\" for locale \"%s\"",
|
||||
(errmsg("using standard form \"%s\" for ICU locale \"%s\"",
|
||||
langtag, colliculocale)));
|
||||
|
||||
colliculocale = langtag;
|
||||
|
||||
Reference in New Issue
Block a user