Re: text vs varchar(n) - Mailing list pgsql-general

From Jean-Michel POURE
Subject Re: text vs varchar(n)
Date
Msg-id 200202180952.g1I9qnFP005662@www1.translationforge
Whole thread Raw
In response to text vs varchar(n)  (Richard Emberson <emberson@phc.net>)
List pgsql-general
Le Lundi 18 Février 2002 06:52, Richard Emberson a écrit :
> If ones sets up the db to be UNICODE, does that also apply to the 'text'
> type?

Yes, encoding is set at database creation (CREATE DATABASE foo WITH ENCODING
'Unicode') for all database. This applies to all tables and views. Unicode is
handled as fast as Latin1 with no real impact on performances.

When using a Unicode PostgreSQL database, you also need a Unicode backend
like Apache/PHP or Java. If your backend is Latin1, like VB6, PostgreSQL will
not be able to recode from Unicode to Latin1 transparently.

Please also note that some server-side functions do not support unicode yet.

Cheers,
Jean-Michel POURE

pgsql-general by date:

Previous
From: Jean-Michel POURE
Date:
Subject: Re: Database Performance?
Next
From: John Fabiani
Date:
Subject: Can postgres use the login password