From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Bruno Baguette <bruno(dot)baguette(at)gmail(dot)com> |
Subject: | Re: Will PostgreSQL 8.4 allow having different encoding databases on a same PostgreSQL server ? |
Date: | 2009-04-09 12:12:33 |
Message-ID: | 200904091412.33483.guillaume@lelarge.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
Le jeudi 09 avril 2009 à 14:03:28, Bruno Baguette a écrit :
> [...]
> Currently, I have several PostgreSQL databases, some of them are using
> LATIN1 encoding, some of them are using UTF-8 encoding.
>
> In order to have theses two encoding, we had to install two PostgreSQL
> server on two different ports. One is for LATIN1 databases and one is
> for UTF-8 databases. (I known there is a workaround which allows to mix
> several databases encoding them on a same PostgreSQL server, by
> specifying "C" locale to initdb).
>
You can do better already on 8.3. You create all your databases with UTF-8 and
add client_encoding with LATIN1 for the ones that need this. A simple:
ALTER DATABASE dbX SET client_encoding TO latin1;
should work.
> I've heard some rumors on freenode stating that PostgreSQL 8.4. will
> allow to have several databases encoding. Did I understand right ?
>
You'll have the possibility to specify lc_ctype and lc_collate. See
http://developer.postgresql.org/pgdocs/postgres/sql-createdatabase.html for
more informations.
Regards.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Treat | 2009-04-09 12:23:35 | Re: Are there performance advantages in storing bulky field in separate table? |
Previous Message | Bruno Baguette | 2009-04-09 12:03:28 | Will PostgreSQL 8.4 allow having different encoding databases on a same PostgreSQL server ? |