pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't allow creation of database with ICU locale with unsupporte
Date: Fri, 16 Sep 2022 07:53:56 +0000
Message-ID: <E1oZ6Ae-000ZUA-9g@gemulon.postgresql.org> (raw)

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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/148f66d59e2c2fa8bc79918973874e2803892664

Modified Files
--------------
doc/src/sgml/ref/initdb.sgml      |  5 +++--
src/backend/commands/dbcommands.c |  9 +++++++--
src/bin/initdb/initdb.c           | 29 +++++++++++++++++++++++++++++
src/bin/initdb/t/001_initdb.pl    |  9 +++++++++
src/bin/scripts/t/020_createdb.pl |  9 +++++++++
5 files changed, 57 insertions(+), 4 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1oZ6Ae-000ZUA-9g@gemulon.postgresql.org>
Permalink:  ../E1oZ6Ae-000ZUA-9g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oZ6Ae-000ZUA-9g@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Don't allow creation of database with ICU locale with unsupporte
  In-Reply-To: <E1oZ6Ae-000ZUA-9g@gemulon.postgresql.org>
  References: <E1oZ6Ae-000ZUA-9g@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox