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 1o8KeF-0002uy-MW for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2022 11:53:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8KeD-0006V4-JJ for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2022 11:53:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8KeD-0006Ut-BK for pgsql-bugs@lists.postgresql.org; Mon, 04 Jul 2022 11:53:49 +0000 Received: from ma04-relay.lansolnet.com ([176.95.46.38]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8Ke8-0005gm-SJ for pgsql-bugs@lists.postgresql.org; Mon, 04 Jul 2022 11:53:48 +0000 Received: from unknown ([192.168.8.230]) by ma04-relay.lansolnet.com; Mon, 04 Jul 2022 13:53:43 +0200 Received: from MBX200A.cloud4partner.com (192.168.8.230) by MBX200A.cloud4partner.com (192.168.8.230) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Mon, 4 Jul 2022 13:53:40 +0200 Received: from MBX200A.cloud4partner.com ([fe80::a590:508d:224a:188c]) by MBX200A.cloud4partner.com ([fe80::a590:508d:224a:188c%18]) with mapi id 15.01.0669.032; Mon, 4 Jul 2022 13:53:40 +0200 From: "ROSESOFT S. Hoffmann" To: Kyotaro Horiguchi CC: "pgsql-bugs@lists.postgresql.org" Subject: AW: PostgreSQL 10 initdb with locale de-x-icu fails on Windows Server 2012 Thread-Topic: PostgreSQL 10 initdb with locale de-x-icu fails on Windows Server 2012 Thread-Index: AdiNSBqQiKmeE0k7RqWLpOkrw/YjcgB5OXOAABRCFtA= Date: Mon, 4 Jul 2022 11:53:40 +0000 Message-ID: References: <62310c8c50c74861b80d908310f8a880@rosesoft.de> <20220704.093405.1243358043142197360.horikyota.ntt@gmail.com> In-Reply-To: <20220704.093405.1243358043142197360.horikyota.ntt@gmail.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.8.240] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-cloud-security-sender: sh@rosesoft.de X-cloud-security-recipient: pgsql-bugs@lists.postgresql.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on ma04-relay.lansolnet.com with 657A4B8013F X-cloud-security-connect: unknown[192.168.8.230], TLS=1, IP=192.168.8.230 X-cloud-security: scantime:.2682 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Kyotaro Horiguchi, i still think this a bug, because "createdb" also can't use any ICU-collati= ons (same error message). On Windows Server 2016/2019/2022 and Windows 10/11 the ICU-Options work as = expected! Why does the problem only occurs on Windows Server 2012? An Upgrade to PostgreSQL 15 is not an option, now. Best Regards, Stefan. -----Urspr=FCngliche Nachricht----- Von: Kyotaro Horiguchi =20 Gesendet: Montag, 4. Juli 2022 02:34 An: ROSESOFT S. Hoffmann Cc: pgsql-bugs@lists.postgresql.org Betreff: Re: PostgreSQL 10 initdb with locale de-x-icu fails on Windows Ser= ver 2012 At Fri, 1 Jul 2022 13:07:13 +0000, "ROSESOFT S. Hoffmann" = wrote in=20 > initdb.exe .. -E UTF8 --locale=3Dde-x-icu --text-search-config=3Dgerman .= . >=20 > Error message: > initdb: ung=FCltiger Locale-Name =BBde-x-icu=AB > 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 collat= ions 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=3Dicu = 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.=20 > (Again, this only sets the default for subsequently created > databases.) To select this option, specify --locale-provider=3Dicu. To=20 > choose the specific ICU locale ID to apply, use the option=20 > --icu-locale. Note that for implementation reasons and to support=20 > legacy code, initdb will still select and initialize libc locale=20 > settings when the ICU locale provider is used. regards. -- Kyotaro Horiguchi NTT Open Source Software Center