Re: Locale and UTF8 for template1 in 8.4.4

From: Iain Barnett <iainspeed(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Locale and UTF8 for template1 in 8.4.4
Date: 2011-05-06 15:51:21
Message-ID: 56B0DCCF-C3EC-4EC2-A25A-6F3DF0CD17A0@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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

> On May 6, 2011, Iain Barnett <iainspeed(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-05-06 16:08:58 Re: undead index
Previous Message Tom Lane 2011-05-06 15:50:22 Re: undead index