pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 21:19:17 +0300
Message-ID: <F4953B0CC37C4B18AD723647CC7899AE@dell2> (raw)
In-Reply-To: <e428f077-29d8-b8d1-bff7-b028c6133a49@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>
	<DCAAD5074A8646B195DA28592F25223D@dell2>
	<e428f077-29d8-b8d1-bff7-b028c6133a49@aklaver.com>

Hi!

>Not sure but:
>1) I was on Windows 7
>2) Using Postgres 11
>3) My Windows skills have atrophied, especially with the Windows command 
>line.
>So was this the same for the database you originally posted about, it 
>actually restored it just threw warnings?

Looks like it restored.  I havent checked restored data.

>If so I misunderstood the situation and thought the database was not 
>loading.

I tried

CREATE DATABASE redmine
    WITH
    ENCODING = 'UTF8'
    LC_COLLATE = 'foo'
    LC_CTYPE = 'bar' template template0

in Linux and in Windows using Postgres 12.2
In Linux it throws error

ERROR:  invalid locale name: "foo"

In Windows it creates database and throws warning only.
Without template template0 clause it throws error in Windows also.

In Linux

CREATE DATABASE redmine WITH TEMPLATE = template0 ENCODING = 'UTF8'
LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United
States.1252';


also throws error

ERROR:  invalid locale name: "English_United States.1252"

So it looks like pg_dump/pg_restore with --create works only from Linux to 
Windows and does not work from Windows to Linux.

I expect that it should work from Windows to Linux also.

Andrus.






view thread (16+ messages)

Message-ID: <F4953B0CC37C4B18AD723647CC7899AE@dell2>
Permalink:  ../F4953B0CC37C4B18AD723647CC7899AE@dell2/
Also on:    postgresql.org/message-id/F4953B0CC37C4B18AD723647CC7899AE@dell2

 · 

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: 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: <F4953B0CC37C4B18AD723647CC7899AE@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> <e428f077-29d8-b8d1-bff7-b028c6133a49@aklaver.com> <F4953B0CC37C4B18AD723647CC7899AE@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