pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Gonsalves <lawgon@thenilgiris.com>
To: pgsql-sql@postgresql.org
Subject: changing encoding of a postgres database
Date: Mon, 5 Nov 2007 17:25:58 +0530
Message-ID: <429AF276-BFD9-4370-8805-F51320F1A150@thenilgiris.com> (raw)

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/





Message-ID: <429AF276-BFD9-4370-8805-F51320F1A150@thenilgiris.com>
Permalink:  ../429AF276-BFD9-4370-8805-F51320F1A150@thenilgiris.com/
Also on:    postgresql.org/message-id/429AF276-BFD9-4370-8805-F51320F1A150@thenilgiris.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lawgon@thenilgiris.com
  Subject: Re: changing encoding of a postgres database
  In-Reply-To: <429AF276-BFD9-4370-8805-F51320F1A150@thenilgiris.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox