pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Monnerie <michael.monnerie@it-management.at>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Converting a DB from SQL_ASCII to UTF-8
Date: Mon, 18 Jun 2007 16:36:20 +0200
Message-ID: <200706181636.20224@zmi.at> (raw)

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

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (2+ messages)  latest in thread

Message-ID: <200706181636.20224@zmi.at>
Permalink:  ../200706181636.20224@zmi.at/
Also on:    postgresql.org/message-id/200706181636.20224@zmi.at

 · 

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-admin@postgresql.org
  Cc: michael.monnerie@it-management.at
  Subject: Re: Converting a DB from SQL_ASCII to UTF-8
  In-Reply-To: <200706181636.20224@zmi.at>

* 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