]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:27 +0000 (10:41 -0400)
commit865b52af61049719e0a289419a0eceded6ea7bae
tree3017fee6cd480fa273a7afd5a7a994d0497455e3
parentab7032b3a8fec281db71acfc37c5c92fc65b08ae
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: https://www.postgresql.org/message-id/9ba4cd1ea6ed6b7b15c0ff15e6f540cd@postgrespro.ru
src/backend/commands/dbcommands.c
src/bin/scripts/t/020_createdb.pl