Re: how can i change encoding in template1 DB? - Mailing list pgsql-general

From Scott Marlowe
Subject Re: how can i change encoding in template1 DB?
Date
Msg-id dcc563d10912121141xf222d99hecc84b58158b1a67@mail.gmail.com
Whole thread Raw
In response to how can i change encoding in template1 DB?  (Nando67 <xxx.yyy@zzz.it>)
Responses Re: how can i change encoding in template1 DB?  (Nando67 <xxx@yyy.zz>)
List pgsql-general
On Sat, Dec 12, 2009 at 6:32 AM, Nando67 <xxx.yyy@zzz.it> wrote:
> I installed postgresql by pacman (i'm using an ArchLinux Distr)
> the default encoding of template1 is SQL_ASCII, i want to change this
> one with UTF8 encoding
>
> i try to use ALTER DATABASE but this statemanent hasn't the clause
> encoding (while the CREATE DATABASE has it) so i can't modify the
> template1 db by this one.

I think you'll have to drop it and then create database with template0
as the template and set encoding then.

pgsql-general by date:

Previous
From: Nando67
Date:
Subject: how can i change encoding in template1 DB?
Next
From: Scott Marlowe
Date:
Subject: Re: how can i change encoding in template1 DB?