Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlBaO-0004IZ-QA for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2019 12:20:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hlBaN-00028U-Da for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2019 12:20:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlBaN-00024a-2L for pgsql-admin@lists.postgresql.org; Wed, 10 Jul 2019 12:20:35 +0000 Received: from jakobs.com ([85.214.83.89] helo=rs.plausibolo.de) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlBaK-0003NA-Id for pgsql-admin@lists.postgresql.org; Wed, 10 Jul 2019 12:20:34 +0000 Received: from localhost (localhost [127.0.0.1]) by rs.plausibolo.de (Postfix) with ESMTP id 225B3BE0AF4 for ; Wed, 10 Jul 2019 14:20:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at rs.plausibolo.de Received: from rs.plausibolo.de ([IPv6:::1]) by localhost (h2367442.stratoserver.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id V81c5UjRhSLg; Wed, 10 Jul 2019 14:20:28 +0200 (CEST) Received: from webmail.plausibolo.de (localhost [IPv6:::1]) by rs.plausibolo.de (Postfix) with ESMTP id 3F858BE0766; Wed, 10 Jul 2019 14:20:28 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 10 Jul 2019 14:20:28 +0200 From: Holger Jakobs To: pgsql-admin@lists.postgresql.org Subject: Names of encodings, lc_collate, lc_ctype Organization: plausibolo.de Message-ID: <3da4af02269b44a18b56a070af0bca18@jakobs.com> X-Sender: holger@jakobs.com User-Agent: Roundcube Webmail/1.3.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, when using the following command on PostgreSQL 9.6 on a SLES Linux machine pg_dump -h machine1 -C the output contains this line CREATE DATABASE db1 WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8'; which causes trouble on a PostgreSQL 10 or 11 on an Ubuntu 18.04 machine ungültiger Locale-Name: »en_US.UTF-8« (meaning 'illegal locale name') The command select * from pg_collation; shows (among many others of course) en_US.utf8 But even removing the hyphen in 'en_US.UTF-8' and converting 'UTF' to lower case doesn't remove the error. How come there are encodings/collations/locales with and without hyphen? Why does the Ubuntu machine not accept a locale which is present in lc_collation? Best Regards, Holger -- Holger Jakobs, 51469 Bergisch Gladbach +49 178 9759012