Re: Invalid byte sequence errors on DB restore

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Samuel Smith <pgsql(at)net153(dot)net>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Invalid byte sequence errors on DB restore
Date: 2020-03-16 14:33:24
Message-ID: 6dfc015b-54e6-37a0-4e5d-f22bfb15e64e@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/15/20 9:18 PM, Samuel Smith wrote:
> My current DB backup routine is just to call pg_dump and pipe to gzip.
> We recently started to get a failure to restore (which is basically just
> using psql -f on the pg_dump file) with the following errors:
>
> invalid byte sequence for encoding "UTF8": 0xa0
>  and
> invalid byte sequence for encoding "UTF8": 0xd7 0x20
>
>
> This is on a pg 9.2.24 instance. Any tips to troubleshoot?

What are the locale and encodings set to for the instance and databases
in it?

>
> Regards,
> Samuel Smith
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scot Kreienkamp 2020-03-16 14:48:07 psql crash on 9.6.16
Previous Message Don Seiler 2020-03-16 14:24:13 Mixed Locales and Upgrading