Improve ICU option handling in CREATE DATABASE
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 21 Sep 2022 14:28:40 +0000 (10:28 -0400)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 21 Sep 2022 14:41:36 +0000 (10:41 -0400)
commite59a67fb8fe1ac1408dc1858038f525a860d772b
treef34a735089355d260e5ebd172bee34c0a27c7401
parent2da8c4cff39328897aa716a0ba57bdada5aeaf6e
Improve ICU option handling in CREATE DATABASE

We check that the ICU locale is only specified if the ICU locale
provider is selected.  But we did that too early.  We need to wait
until we load the settings of the template database, since that could
also set what the locale provider is.

Reported-by: Marina Polyakova <m.polyakova@postgrespro.ru>
Discussion: http://www.postgresql.org/message-id/9ba4cd1ea6ed6b7b15c0ff15e6f540cd@postgrespro.ru
src/backend/commands/dbcommands.c
src/bin/scripts/t/020_createdb.pl