From: Tomas Pospisek <tpo2@sourcepole.ch>
To: pgsql-general@lists.postgresql.org
Subject: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_US.utf-8)
Date: Wed, 22 Jun 2022 21:17:18 +0200
Message-ID: <fedc0205-c15b-e400-aa3f-e1d2a1285ddb@sourcepole.ch> (raw)
Hi all,
while doing `cat pg_dump.dump | psql` I get the above message. Note that
`pg_dump.dump` contains:
CREATE DATABASE some_db WITH TEMPLATE = my_own_template ENCODING =
'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';
What is exactly the problem? I understand that en_US.UTF-8 and
en_US.utf-8 is not *exactly* the same string.
However I do not understand how the difference came to be. And I do not
know what the "right" way is and how to proceed from here.
If I `pg_dump --create` some DB on the new server (13.7-1.pgdg18.04+1) I
get:
CREATE DATABASE ... ENCODING = 'UTF8' LOCALE = 'en_US.utf-8';
When I do the same on the old server (12.8-1.pgdg20.04+1) I get:
CREATE DATABASE ... ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8'
LC_CTYPE = 'en_US.UTF-8';
Any hints or help?
*t
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
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: <fedc0205-c15b-e400-aa3f-e1d2a1285ddb@sourcepole.ch>
References: <fedc0205-c15b-e400-aa3f-e1d2a1285ddb@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