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 1hlCp0-0008CY-AB for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2019 13:39:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hlCoz-0005rQ-5l for pgsql-admin@arkaria.postgresql.org; Wed, 10 Jul 2019 13:39:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlCoy-0005rC-Mp for pgsql-admin@lists.postgresql.org; Wed, 10 Jul 2019 13:39:44 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlCow-0003Ay-HH for pgsql-admin@lists.postgresql.org; Wed, 10 Jul 2019 13:39:43 +0000 Received: by mail-oi1-x242.google.com with SMTP id m206so1614736oib.12 for ; Wed, 10 Jul 2019 06:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=AKPm9tKKefQQglGgMCxpj2spgcpCxXLxAyXpYo9nH+4=; b=UyBe8m/5VjiG1Z1Dv1MZxSA+kJ0L0Grad34RL2rSJDNAYMn0klrdXYXtS1jRIx52Bw Iutj3Yk/xAc8wQrqNmIdwq4hE1y9/voQ1yKm+1uVb7oEN84NuMk/IoJ4GRv8x9LPwqt/ SrUokFpJMbADynrDW9/nr4HuWw9VOkEqcK1K41GF8BOg/JFyyYXWH8ckT9aKy2OlFhew 8VrTYN80wO8JQt0EGAfa5Wg0sEiooFrpzTevBfkL5wDsucws0lE7XuCZ9y+lDn9p3OIf KUJGj0/UYST5hIDLOcj6X2PLj9pF2oP/zHRukLQ7vJc6OZ2YmA4wuO+O4OQvew4l+Krt qFKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=AKPm9tKKefQQglGgMCxpj2spgcpCxXLxAyXpYo9nH+4=; b=ltDXNfSKz+FHC1nNuinZO6YWx/YeQwUezA/R2kYgj0lftnYDA7b9gkfgtKsHsWbE+8 rXRrlzIDv2BGsDtwSQS8DnCM05cDNAngz+gtrLUNnomK0o1IurFvBdpeMiZxXLvq5NV+ Z6T+YYoxNl5emQWSMEF6TSfCWJqVFTucJhznAwCGG5EsTf++7iGSZm/MG4LHuhdhcClo K2Tc22qmjdAUsg7Kq4b15W0xv3iZlJD0yQ8i1Qe7EF+TqOUUCHD2ZlDO7ODscoPWE4cO refjgYUVGR0JFTzWRdfKxm0gfofnM80xB7ZmeAgfW6XlEOkcXUMBJw07SASU15RY8OOB lIqw== X-Gm-Message-State: APjAAAVy358WMxOpr8pq37IO3QzeTdJqu3+9ugDUq5iXvragnkOvbNZE W3ZmaCgh6bPMk/xR0FW55UQ9c9f0tNY= X-Google-Smtp-Source: APXvYqwPxlHu/+b2+WSmGc0Y/7R0PigRbULdmUdcSM4KVxNQxq/LGbF01XQ5qql0FbAXVHBVW0MzpA== X-Received: by 2002:aca:ea41:: with SMTP id i62mr3265583oih.144.1562765981666; Wed, 10 Jul 2019 06:39:41 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id 9sm723626oij.25.2019.07.10.06.39.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 06:39:40 -0700 (PDT) Subject: Re: Names of encodings, lc_collate, lc_ctype To: pgsql-admin@lists.postgresql.org References: <3da4af02269b44a18b56a070af0bca18@jakobs.com> <810.1562765208@sss.pgh.pa.us> From: Ron Message-ID: <9f1b3251-87a1-3fde-e51f-69010c181258@gmail.com> Date: Wed, 10 Jul 2019 08:39:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <810.1562765208@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/10/19 8:26 AM, Tom Lane wrote: > Holger Jakobs writes: >> 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') > Hmm, does "locale -a" show that you have en_US installed? > > It's basically on the platform's libc to say whether the values for > LC_COLLATE and LC_CTYPE are valid. In my experience, glibc is quite > forgiving about how the encoding suffix is spelled, so I'm wondering > if your destination machine is simply lacking the locale definition. My Ubuntu 18.04 system (upgraded from 16.04) has these: C C.UTF-8 en_US.utf8 POSIX -- Angular momentum makes the world go 'round.