pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: sh@rosesoft.de
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: PostgreSQL 10 initdb with locale de-x-icu fails on Windows Server 2012
Date: Mon, 04 Jul 2022 09:34:05 +0900 (JST)
Message-ID: <20220704.093405.1243358043142197360.horikyota.ntt@gmail.com> (raw)
In-Reply-To: <62310c8c50c74861b80d908310f8a880@rosesoft.de>
References: <62310c8c50c74861b80d908310f8a880@rosesoft.de>

At Fri, 1 Jul 2022 13:07:13 +0000, "ROSESOFT S. Hoffmann" <sh@rosesoft.de> wrote in 
> initdb.exe .. -E UTF8 --locale=de-x-icu --text-search-config=german ..
> 
> Error message:
> initdb: ungültiger Locale-Name »de-x-icu«

> According to https://www.postgresql.org/download/windows/ PostgreSQL
> 10 is supported by Windows Server 2012.

If you are unfortunately using PostgreSQL 10, it doesn't support ICU
collations as the default for databases.  It's a new feature of 15.

https://www.postgresql.org/docs/15/release-15.html
> - Allow ICU collations to be set as the default for clusters and
>   databases (Peter Eisentraut)
>   Previously, ICU collations could only be specified in CREATE
>   COLLATION and used with the COLLATE clause.

If you are using PG15, --icu-locale accompanied by
--locale-provider=icu instead of --locale will work for you.

https://www.postgresql.org/docs/devel/app-initdb.html

> Alternatively, the ICU library can be used to provide locale
> services. (Again, this only sets the default for subsequently created
> databases.) To select this option, specify --locale-provider=icu. To
> choose the specific ICU locale ID to apply, use the option
> --icu-locale. Note that for implementation reasons and to support
> legacy code, initdb will still select and initialize libc locale
> settings when the ICU locale provider is used.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center





view thread (5+ messages)  latest in thread

Message-ID: <20220704.093405.1243358043142197360.horikyota.ntt@gmail.com>
Permalink:  ../20220704.093405.1243358043142197360.horikyota.ntt@gmail.com/
Also on:    postgresql.org/message-id/20220704.093405.1243358043142197360.horikyota.ntt@gmail.com

 · 

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-bugs@postgresql.org
  Cc: horikyota.ntt@gmail.com, sh@rosesoft.de
  Subject: Re: PostgreSQL 10 initdb with locale de-x-icu fails on Windows Server 2012
  In-Reply-To: <20220704.093405.1243358043142197360.horikyota.ntt@gmail.com>
  References: <62310c8c50c74861b80d908310f8a880@rosesoft.de> <20220704.093405.1243358043142197360.horikyota.ntt@gmail.com>

* 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