pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedChanging locale/charset
3+ messages / 3 participants
[nested] [flat]
* Changing locale/charset
@ 2018-01-22 21:18 Martin Moore <martin.moore@avbrief.com>
2018-01-22 22:35 ` Re: Changing locale/charset Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2018-01-23 14:03 ` Re: Changing locale/charset Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 2 replies; 3+ messages in thread
From: Martin Moore @ 2018-01-22 21:18 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
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?
Cheers.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Changing locale/charset
2018-01-22 21:18 Changing locale/charset Martin Moore <martin.moore@avbrief.com>
@ 2018-01-22 22:35 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2018-01-22 22:35 UTC (permalink / raw)
To: Martin Moore <martin.moore@avbrief.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Changing locale/charset
2018-01-22 21:18 Changing locale/charset Martin Moore <martin.moore@avbrief.com>
@ 2018-01-23 14:03 ` Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 3+ messages in thread
From: Adrian Klaver @ 2018-01-23 14:03 UTC (permalink / raw)
To: Martin Moore <martin.moore@avbrief.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
On 01/22/2018 01:18 PM, 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?
Assuming you are using the Debian pg_ctlcluster command see 'Changing
Debian default installation' in below:
https://wiki.debian.org/PostgreSql
>
>
> Cheers.
>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-01-23 14:03 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-22 21:18 Changing locale/charset Martin Moore <martin.moore@avbrief.com>
2018-01-22 22:35 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2018-01-23 14:03 ` Adrian Klaver <adrian.klaver@aklaver.com>
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