From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
Date: Mon, 30 Mar 2020 00:47:22 +0300
Message-ID: <DCAAD5074A8646B195DA28592F25223D@dell2> (raw)
In-Reply-To: <98f225f7-7647-b15f-a03c-0f19437c5b92@aklaver.com>
References: <F4D04849032C4464B8FF17CB0F896F9E@dell2>
<774c7cfe-43ea-03a6-1c88-31f51a39fd4a@aklaver.com>
<95D844CA8C2546429693F5040343B223@dell2>
<ff63ec45-2539-dedc-747b-210937a2423b@aklaver.com>
<9FADB15B59E64B1AACA7518F9EA217D6@dell2>
<c8f8ede1-5b8c-27ff-6201-619668396008@aklaver.com>
<530E415FB40546B7BE57EAB51AD6A098@dell2>
<98f225f7-7647-b15f-a03c-0f19437c5b92@aklaver.com>
Hi!
>> Same warning appears two times. This command execute by pg_restore
>> probably causes this (harmless?) warning:
>What warning?
pg_restore: WARNING: could not determine encoding for locale "et_EE.UTF-8":
codeset is "CPUTF-8"
>I cranked up a Windows 7 instance and tried to migrate a Postgres 11
>database from Ubuntu and it failed on the CREATE DATABASE step because of
>this line in the dump file:
>CREATE DATABASE redmine WITH TEMPLATE = template0 ENCODING = 'UTF8'
>LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';
I ran this statemnt it in Windows 10 with Postgres 12 successfully. Result
was:
WARNING: could not determine encoding for locale "en_US.UTF-8": codeset is
"CPUTF-8"
WARNING: could not determine encoding for locale "en_US.UTF-8": codeset is
"CPUTF-8"
CREATE DATABASE
Query returned successfully in 1 secs 75 msec.
redmine database was created. I dont understand why it failed in your test.
>When I manually changed it in the plain text version of the dump file to:
>CREATE DATABASE redmine WITH TEMPLATE = template0 ENCODING = 'UTF8'
>LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United
>States.1252';
I verifed that data was restored using pg_restore without manually changing
anything.
Andrus.
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: kobruleht2@hot.ee, adrian.klaver@aklaver.com
Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
In-Reply-To: <DCAAD5074A8646B195DA28592F25223D@dell2>
References: <F4D04849032C4464B8FF17CB0F896F9E@dell2> <774c7cfe-43ea-03a6-1c88-31f51a39fd4a@aklaver.com> <95D844CA8C2546429693F5040343B223@dell2> <ff63ec45-2539-dedc-747b-210937a2423b@aklaver.com> <9FADB15B59E64B1AACA7518F9EA217D6@dell2> <c8f8ede1-5b8c-27ff-6201-619668396008@aklaver.com> <530E415FB40546B7BE57EAB51AD6A098@dell2> <98f225f7-7647-b15f-a03c-0f19437c5b92@aklaver.com> <DCAAD5074A8646B195DA28592F25223D@dell2>
* 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