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: Sun, 29 Mar 2020 21:12:18 +0300
Message-ID: <530E415FB40546B7BE57EAB51AD6A098@dell2> (raw)
In-Reply-To: <c8f8ede1-5b8c-27ff-6201-619668396008@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>
Hi!
>There seems to a difference of opinion of what Baltic Code Page to use:
>https://en.wikipedia.org/wiki/Code_page_775
>https://en.wikipedia.org/wiki/Windows-1257
>The post below shows a users method of dealing with this for another CP:
>https://www.postgresql.org/message-id/549275CC.4010607%40gmail.com
Console code page 775 message appears since psql is console application
running from command line.
It does not have any relation to pg_dump/pg_restore issue since console code
page is not used in this case.
There is Estonian locale everywhere.
Maybe this warning is harmless since Linux code page is ignored and default
collation is used.
All table definitions in restored database contain references to default
collation:
CREATE TABLE firma1.acquirpo
(
kassanr numeric(3,0) NOT NULL,
policyid character(2) COLLATE pg_catalog."default" NOT NULL,
trantype character(6) COLLATE pg_catalog."default",
tacdefault character(10) COLLATE pg_catalog."default",
tacdenial character(10) COLLATE pg_catalog."default",
taconline character(10) COLLATE pg_catalog."default",
floorlimit numeric(12,0),
randselthr numeric(12,0),
minrandper numeric(2,0),
maxrandper numeric(2,0),
CONSTRAINT acquirpo_pkey PRIMARY KEY (kassanr, policyid)
)
TABLESPACE pg_default;
Same warning appears two times. This command execute by pg_restore probably
causes this (harmless?) warning:
CREATE DATABASE mydb
WITH
OWNER = mydb_owner
ENCODING = 'UTF8'
LC_COLLATE = 'et_EE.UTF-8'
LC_CTYPE = 'et_EE.UTF-8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
If new database is created manually in windows cluster the following command
is generated:
CREATE DATABASE mydbmanually
WITH
OWNER = mydbmanually_owner
ENCODING = 'UTF8'
LC_COLLATE = 'Estonian_Estonia.1257'
LC_CTYPE = 'Estonian_Estonia.1257'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
Andrus.
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: <530E415FB40546B7BE57EAB51AD6A098@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>
* 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