Re: converting database to unicode

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Jason Tesser <JTesser(at)nbbc(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: converting database to unicode
Date: 2004-10-15 14:48:10
Message-ID: 20041015144809.GA4889@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 15, 2004 at 09:36:42AM -0500, Jason Tesser wrote:
> Uhh no. Could you help me understand how to do that. I am currently using the following to dump and restore
> pg_dump -Fc --username=xxx --dbanme=xxx filename
> pg_restore -Fc --username=xxx --dbname filename

Something like

pg_dump --username=xxx --dbname=yyy filename
recode latin1..utf8 filename
createdb -E utf8 database
psql < filename

(assuming the database is Latin1, a.k.a. iso-8859-1. Update accordingly.)

I don't think you can do it with a -Fc or -Ft format. In fact, if you
do that, the dump will be corrupted.

Huh, now I know why your name was so familiar to me (see sig)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Jason Tesser: You might not have understood me or I am not understanding you.
Paul Thomas: It feels like we're 2 people divided by a common language...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-10-15 15:02:58 Re: creating audit tables
Previous Message Tom Lane 2004-10-15 14:46:45 Re: not using index through procedure