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 1o4ePu-0002DB-1G for pgsql-general@arkaria.postgresql.org; Fri, 24 Jun 2022 08:11:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o4ePs-0000va-TO for pgsql-general@arkaria.postgresql.org; Fri, 24 Jun 2022 08:11:48 +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 1o4ePs-0000vP-JX for pgsql-general@lists.postgresql.org; Fri, 24 Jun 2022 08:11:48 +0000 Received: from brisi.sourcepole.ch ([5.9.57.43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4ePp-0003Zs-RN for pgsql-general@lists.postgresql.org; Fri, 24 Jun 2022 08:11:47 +0000 Received: from [213.55.225.20] (helo=[192.168.43.81]) by vilan-mail with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o4ePn-00070x-KT; Fri, 24 Jun 2022 10:11:43 +0200 Message-ID: <23557e37-b480-2125-1afd-8f7fc26c1b09@sourcepole.ch> Date: Fri, 24 Jun 2022 10:11:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8) Content-Language: en-GB To: Adrian Klaver , pgsql-general@lists.postgresql.org References: <8c998edf-82a1-0769-77d7-7ef5076c098c@aklaver.com> <06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch> <3370e253-1928-294a-facb-e9850bfefa90@aklaver.com> <589f2863-f7a8-3519-533a-f5751513823b@aklaver.com> From: Tomas Pospisek In-Reply-To: <589f2863-f7a8-3519-533a-f5751513823b@aklaver.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.06.22 20:21, Adrian Klaver wrote: > On 6/23/22 10:11, Adrian Klaver wrote: >> On 6/23/22 00:37, Tomas Pospisek wrote: >>> On 22.06.22 22:18, Tomas Pospisek wrote: >>>> On 22.06.22 21:25, Adrian Klaver wrote: >>>>> On 6/22/22 12:17, Tomas Pospisek wrote: >> >>> >>> So I used both pg_dump and pg_restore from the newer machine. Result >>> is still the same.  So I'll use Tom Lane's suggestion too and fix the >>> 'UTF-8' spelling in the dump file: >> >> Not sure why that is necessary? Is seems this is low hanging fruit >> that could dealt with by the equivalent of lower('en_US.UTF-8') = >> lower('en_US.utf-8'). > > Well that was clear as mud. :-D > My point was that I don't see why the end > user should have to do this when it could be handled internally in the > pg_restore code. That would indeed be very friendly of pg_restore if it'd take that little task off the user :-) +1 of course :-) *t