Re: Can't restore a pg_dump due to encoding errors

From: Dan Harris <fbsd(at)drivefaster(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Can't restore a pg_dump due to encoding errors
Date: 2007-04-07 21:32:17
Message-ID: 46180DE1.2050908@drivefaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Dan Harris wrote:
> Hello all:
>
> I'm in a bit of a bind here. Today is my maintenance window for
> upgrading from 8.0.3 to 8.2.3. I did a pg_dumpall overnight ( resulting
> in a 72GB file ) and then a pg_dump on one of my small databases this
> morning to test pg_restore. When trying to reload, I'm getting the
> following error:
>
> psql:sac.bak:2793776: ERROR: invalid byte sequence for encoding "UTF8":
> 0x92

I found the utility 'iconv', which sounds like it addresses this problem. I ran
the utility against the dump file and then it loaded without error.. Just
validating that the data is indeed there.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Simon Riggs 2007-04-07 22:33:37 Re: Hot Backup using WAL files
Previous Message adey 2007-04-07 21:29:39 Re: Can't restore a pg_dump due to encoding errors