Converting a DB from SQL_ASCII to UTF-8

From: Michael Monnerie <michael(dot)monnerie(at)it-management(dot)at>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Converting a DB from SQL_ASCII to UTF-8
Date: 2007-06-18 14:36:20
Message-ID: 200706181636.20224@zmi.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Dear list,

how would I convert an existing database (dbmail mail server,
http://dbmail.org/) from SQL_ASCII to UTF-8?

I cannot just dump and reload, because:

psql:/mnt/dbmail:191030: FEHLER: ungültige Byte-Sequenz für
Kodierung »UTF8«: 0xdc62
TIP: Dieser Fehler kann auch auftreten, wenn die Bytesequenz nicht mit
der Kodierung übereinstimmt, die der Server erwartet, welche
durch »client_encoding« bestimmt wird.

(How could I tell postfix to speak with me in english?)

Now what would be the correct way to convert, without destroying any of
the DB contents? There are e-mails there, so binary values are
important, too.

mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0676/846 914 666 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB 11B7 BA2D 060F 1C6F E6B0
// Keyserver: www.keyserver.net Key-ID: 1C6FE6B0

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andrew Sullivan 2007-06-18 15:44:55 Re: AIX - best practices?
Previous Message Ray Stell 2007-06-18 14:27:33 Re: bugtraq post