changing encoding of a postgres database - Mailing list pgsql-sql

From Kenneth Gonsalves
Subject changing encoding of a postgres database
Date
Msg-id 429AF276-BFD9-4370-8805-F51320F1A150@thenilgiris.com
Whole thread Raw
List pgsql-sql
hi,

I recently did a dist-upgrade from sarge to etch on a server with a  
bunch of postgresql databases (7.4.9). Many of these had encoding set  
as unicode and contained a lot of unicode data. After the dist- 
upgrade, I find some of these databases are now encoded as latin1 -  
and I cannot properly retrieve the unicode data or add now unicode  
data. I tried pg_dump, dropdb, createdb with E=unicode and the  
restore with psql -f, but the restoration barfs on the first  
occurence of unicode data. Any solution?
-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/




pgsql-sql by date:

Previous
From: "Asko Oja"
Date:
Subject: Re: Backup Database
Next
From: Tom Lane
Date:
Subject: Re: Returning the total number of rows as a separate column when using limit