Re: Can't restore a pg_dump due to encoding errors - Mailing list pgsql-admin

From Dan Harris
Subject Re: Can't restore a pg_dump due to encoding errors
Date
Msg-id 46180DE1.2050908@drivefaster.net
Whole thread Raw
In response to Can't restore a pg_dump due to encoding errors  (Dan Harris <fbsd@drivefaster.net>)
List 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.




pgsql-admin by date:

Previous
From: adey
Date:
Subject: Re: Can't restore a pg_dump due to encoding errors
Next
From: "Simon Riggs"
Date:
Subject: Re: Hot Backup using WAL files