From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Martin Moore <martin.moore@avbrief.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Changing locale/charset
Date: Mon, 22 Jan 2018 17:35:13 -0500
Message-ID: <df7b7a12-0eaf-ccad-ea95-bd79ff0faa34@2ndquadrant.com> (raw)
In-Reply-To: <7A9AC752-FBA5-4A4D-B893-CE56A69F6941@avbrief.com>
References: <7A9AC752-FBA5-4A4D-B893-CE56A69F6941@avbrief.com>
On 1/22/18 16:18, Martin Moore wrote:
> I created a 10.1 cluster on Debian using UTF8.
> I’d like to convert it to LATIN1, but am having various issues. So, it’s probably easiest to start again (I have a dump of the DB).
>
> To ensure I get it right, what is the correct way to create a cluster with LATIN1 encoding, how to remove the existing cluster and how to ensure I have the right settings for LOCALE etc. in the OS?
pg_lsclusters
pg_dropcluster VERSION NAME
pg_createcluster VERSION NAME --locale=xx_XX
where xx_XX is chosen by you. You previous cluster probably had a
locale of xx_XX.utf8, so it had the UTF8 encoding.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: peter.eisentraut@2ndquadrant.com, martin.moore@avbrief.com
Subject: Re: Changing locale/charset
In-Reply-To: <df7b7a12-0eaf-ccad-ea95-bd79ff0faa34@2ndquadrant.com>
References: <7A9AC752-FBA5-4A4D-B893-CE56A69F6941@avbrief.com> <df7b7a12-0eaf-ccad-ea95-bd79ff0faa34@2ndquadrant.com>
* 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