Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jISxg-00006L-VG for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 08:06:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jISxf-0002iB-OO for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 08:06:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jISuS-0004Ps-Bt for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2020 08:03:08 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jISuM-0000Yn-5p for pgsql-general@postgresql.org; Sun, 29 Mar 2020 08:03:07 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id A50E61B44; Sun, 29 Mar 2020 11:03:01 +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 A1XMsrnJIprN; Sun, 29 Mar 2020 11:02:59 +0300 (EEST) Received: from mail.hot.ee (hot-relayhost2.estpak.ee [213.180.2.80]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 67E021B71; Sun, 29 Mar 2020 11:02:59 +0300 (EEST) Received: from dell2 (66-63-196-88.sta.estpak.ee [88.196.63.66]) (Authenticated sender: kobruleht2) by HOT-Relayhost2.estpak.ee (Postfix) with ESMTPSA id 48qp422RvLz2j7; Sun, 29 Mar 2020 11:02:56 +0300 (EEST) Message-ID: <1046C47572F54F1BA5A726A49BAC6F3C@dell2> From: "Andrus" To: "Tom Lane" Cc: "pgsql-general" References: <22672.1585442578@sss.pgh.pa.us> In-Reply-To: <22672.1585442578@sss.pgh.pa.us> Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore Date: Sun, 29 Mar 2020 11:02:48 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original 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! >Generally speaking, locale names from Unix systems won't work at all on >Windows. You need to create the database manually with whatever seems >to be the closest Windows locale match, and then restore its contents >without using --create. This is unattended script running in every night from .bat file. How to replace pg_restore --create option with psql and/or createdb calls and specify proper locale for them ? Currently everthing has "Estonian_Estonia.1257" locale in windows. Which locale name should be specified in Windows instead of this? Or maybe creating new template with proper encoding or changing template0 encoding helps? Andrus.