Re: Locale and UTF8 for template1 in 8.4.4 - Mailing list pgsql-general

From Iain Barnett
Subject Re: Locale and UTF8 for template1 in 8.4.4
Date
Msg-id 56B0DCCF-C3EC-4EC2-A25A-6F3DF0CD17A0@gmail.com
Whole thread Raw
In response to Re: Locale and UTF8 for template1 in 8.4.4  (Alan Hodgson <ahodgson@reinvent.com>)
List pgsql-general

On 6 May 2011, at 16:19, Alan Hodgson wrote:

On May 6, 2011, Iain Barnett <iainspeed@gmail.com> wrote:
> Would anyone be able to point out to me how I can get the template1
> database to be utf8 and en_GB? (or US, I'm not *that* fussed)

Use the --encoding and --locale options to initdb.

I had to backup the PGDATA directory, but it worked. This is what I ran:

    initdb --encoding=UTF8 --locale=en_GB -D /path/to/data/dir


Thanks for the help, it is much appreciated.

Regards,
Iain

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: undead index
Next
From: Tom Lane
Date:
Subject: Re: undead index