Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIfn2-00066K-TC for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 21:48:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIfmV-0003ge-LK for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 21:47:47 +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 1jIfmV-0003fT-Dg for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2020 21:47:47 +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 1jIfmO-0006ME-3D for pgsql-general@postgresql.org; Sun, 29 Mar 2020 21:47:46 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id B48ED1A39; Mon, 30 Mar 2020 00:47:36 +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 sv9mUSpM3AmG; Mon, 30 Mar 2020 00:47:34 +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 7D7661A23; Mon, 30 Mar 2020 00:47:34 +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 48r8MT2m8Qz2Kt; Mon, 30 Mar 2020 00:47:32 +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: <98f225f7-7647-b15f-a03c-0f19437c5b92@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 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! >> 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.