Re: Strange UTF8 issue with pg_dump/pg_restore

From: "Aaron Bono" <postgresql(at)aranya(dot)com>
To: "Benjamin Krajmalnik" <kraj(at)illumen(dot)com>
Cc: "pgsql admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Strange UTF8 issue with pg_dump/pg_restore
Date: 2006-08-08 18:36:45
Message-ID: bf05e51c0608081136n7224af68g953b64e7966c8e98@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 8/7/06, Benjamin Krajmalnik <kraj(at)illumen(dot)com> wrote:
>
> I have a database whose records are inserted via ODBC.
> I turned on logging, and the client is explicitly setting the client
> encoding to UTF.
>
> Rows are inserted into the tables. When I do a pg_dump, I do not get any
> errors. When I try tor restore, I am getting an error regarding an invalid
> UTF-8 character sequence.
> Of course, this renders compressed backups useless, since I have no way of
> manually fixing the file. The process of fixing the file is, of course,
> painful.
>

Why can't you manually fix it? I know you cannot fix it while compressed
but you should be able to fix it after it is uncompressed, right?

Have you tried to set the encoding just like the client before you do a
restore from backup?

==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
http://codeelixir.com
==================================================================

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Aaron Bono 2006-08-08 20:05:41 Re: Getting rid of postgres output
Previous Message Jim Nasby 2006-08-08 17:04:37 Re: Start-up script for Solaris