Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7FTP-0000r5-7M for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jan 2022 11:37:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7FTO-0002h8-1W for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jan 2022 11:37:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7FTN-0002g9-OA for pgsql-hackers@lists.postgresql.org; Tue, 11 Jan 2022 11:37:53 +0000 Received: from verite.pro ([195.154.133.58] helo=sd-76392.dedibox.fr) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7FTL-0006TA-2D for pgsql-hackers@postgresql.org; Tue, 11 Jan 2022 11:37:52 +0000 Received: by sd-76392.dedibox.fr (Postfix, from userid 1000) id 634E82240245; Tue, 11 Jan 2022 12:36:48 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: ICU for global collation From: "Daniel Verite" To: "Julien Rouhaud" Cc: Peter Eisentraut , Pgsql-Hackers In-Reply-To: Date: Tue, 11 Jan 2022 12:36:46 +0100 Message-Id: <8647718d-eecb-4a4b-9929-7cb16eae8764@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud wrote: > > I guess there's still the possibility of requiring that the ICU db-wide > > collation of the new database does exist in the template database, > > and then the CREATE DATABASE would refer to that collation instead of > > an independent locale string. >=20 > That could work. However if having the collation in the template databas= e a > strict requirement the something should also be done for initdb, and it w= ill > probably be a bigger problem. If CREATE DATABASE referred to a collation in the template db, either that collation already exists, or the user would have to add it to the template db with CREATE COLLATION. initdb already populates the template databases with a full set of ICU collations through pg_import_system_collations(). I don't quite see what change you're seeing that would be needed in initdb. Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: https://www.manitou-mail.org Twitter: @DanielVerite