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 1jIz2C-0001jQ-5Z for pgsql-general@arkaria.postgresql.org; Mon, 30 Mar 2020 18:21:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIz2B-0005UE-30 for pgsql-general@arkaria.postgresql.org; Mon, 30 Mar 2020 18:21:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIz2A-0005U7-RV for pgsql-general@lists.postgresql.org; Mon, 30 Mar 2020 18:21:14 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIz28-00088R-Dg for pgsql-general@postgresql.org; Mon, 30 Mar 2020 18:21:13 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id E98FB1D20; Mon, 30 Mar 2020 21:21:10 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LaKAY+ht7lKu; Mon, 30 Mar 2020 21:21:08 +0300 (EEST) Received: from mail.hot.ee (hot-relayhost3.estpak.ee [213.180.2.81]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id A8E7A1C5A; Mon, 30 Mar 2020 21:21:08 +0300 (EEST) Received: from dell2 (66-63-196-88.sta.estpak.ee [88.196.63.66]) (Authenticated sender: kobruleht2) by HOT-Relayhost3.estpak.ee (Postfix) with ESMTPSA id 48rgkq09JYz2Lg; Mon, 30 Mar 2020 21:21:05 +0300 (EEST) Message-ID: From: "Andrus" To: "pgsql-general" , "Adrian Klaver" References: <774c7cfe-43ea-03a6-1c88-31f51a39fd4a@aklaver.com> <95D844CA8C2546429693F5040343B223@dell2> <9FADB15B59E64B1AACA7518F9EA217D6@dell2> <530E415FB40546B7BE57EAB51AD6A098@dell2> <98f225f7-7647-b15f-a03c-0f19437c5b92@aklaver.com> In-Reply-To: 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 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-1257"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.