Don't allow creation of database with ICU locale with unsupported encoding

Peter Eisentraut <peter@eisentraut.org>

Commit: 148f66d59e2c2fa8bc79918973874e2803892664
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-09-16T07:41:25Z
Releases: 15.0
Don't allow creation of database with ICU locale with unsupported encoding

Check in CREATE DATABASE and initdb that the selected encoding is
supported by ICU.  Before, they would pass but users would later get
an error from the server when they tried to use the database.

Also document that initdb sets the encoding to UTF8 by default if the
ICU locale provider is chosen.

Author: Marina Polyakova <m.polyakova@postgrespro.ru>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://www.postgresql.org/message-id/6dd6db0984d86a51b7255ba79f111971@postgrespro.ru

Files

Documentation touched

Discussion