pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <kobruleht2@hot.ee>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@postgresql.org>
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
Message-ID: <1046C47572F54F1BA5A726A49BAC6F3C@dell2> (raw)
In-Reply-To: <22672.1585442578@sss.pgh.pa.us>
References: <F4D04849032C4464B8FF17CB0F896F9E@dell2>
	<22672.1585442578@sss.pgh.pa.us>

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. 






view thread (16+ messages)  latest in thread

Message-ID: <1046C47572F54F1BA5A726A49BAC6F3C@dell2>
Permalink:  ../1046C47572F54F1BA5A726A49BAC6F3C@dell2/
Also on:    postgresql.org/message-id/1046C47572F54F1BA5A726A49BAC6F3C@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, tgl@sss.pgh.pa.us
  Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
  In-Reply-To: <1046C47572F54F1BA5A726A49BAC6F3C@dell2>
  References: <F4D04849032C4464B8FF17CB0F896F9E@dell2> <22672.1585442578@sss.pgh.pa.us> <1046C47572F54F1BA5A726A49BAC6F3C@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