pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Pospisek <tpo2@sourcepole.ch>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8)
Date: Fri, 24 Jun 2022 10:11:39 +0200
Message-ID: <23557e37-b480-2125-1afd-8f7fc26c1b09@sourcepole.ch> (raw)
In-Reply-To: <589f2863-f7a8-3519-533a-f5751513823b@aklaver.com>
References: <fedc0205-c15b-e400-aa3f-e1d2a1285ddb@sourcepole.ch>
	<8c998edf-82a1-0769-77d7-7ef5076c098c@aklaver.com>
	<dca61c7b-a5e2-1269-3440-7a89a86186e1@sourcepole.ch>
	<06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch>
	<3370e253-1928-294a-facb-e9850bfefa90@aklaver.com>
	<589f2863-f7a8-3519-533a-f5751513823b@aklaver.com>

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





view thread (10+ messages)  latest in thread

Message-ID: <23557e37-b480-2125-1afd-8f7fc26c1b09@sourcepole.ch>
Permalink:  ../23557e37-b480-2125-1afd-8f7fc26c1b09@sourcepole.ch/
Also on:    postgresql.org/message-id/23557e37-b480-2125-1afd-8f7fc26c1b09@sourcepole.ch

 · 

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-general@postgresql.org
  Cc: tpo2@sourcepole.ch, adrian.klaver@aklaver.com
  Subject: Re: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8)
  In-Reply-To: <23557e37-b480-2125-1afd-8f7fc26c1b09@sourcepole.ch>
  References: <fedc0205-c15b-e400-aa3f-e1d2a1285ddb@sourcepole.ch> <8c998edf-82a1-0769-77d7-7ef5076c098c@aklaver.com> <dca61c7b-a5e2-1269-3440-7a89a86186e1@sourcepole.ch> <06131c03-5dd1-a8e1-37ea-65014470c22e@sourcepole.ch> <3370e253-1928-294a-facb-e9850bfefa90@aklaver.com> <589f2863-f7a8-3519-533a-f5751513823b@aklaver.com> <23557e37-b480-2125-1afd-8f7fc26c1b09@sourcepole.ch>

* 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