pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Samuel Smith <pgsql@net153.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Invalid byte sequence errors on DB restore
Date: Mon, 16 Mar 2020 12:35:39 -0500
Message-ID: <d3b463fe-e974-6ef2-0a1a-f931b5c153bd@net153.net> (raw)
In-Reply-To: <c16eddc71bec99ce0fa41c2160b21f59439a18bb.camel@cybertec.at>
References: <2c81203a-01ef-ca84-1294-91420f71dd1f@net153.net>
	<c16eddc71bec99ce0fa41c2160b21f59439a18bb.camel@cybertec.at>

On 3/16/20 2:49 AM, Laurenz Albe wrote:
> On Sun, 2020-03-15 at 23:18 -0500, 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?
> 
> Simple.  Fix the offending string and upgrade.
> 
> Failure to enforce correct encoding is a bug in PostgreSQL, and a
> number of such bugs have been fixed over the decades, so you might
> be happier with a less ancient version.
> 
> Yours,
> Laurenz Albe
> 



Yes I thought I had seen some info on bug fixes in newer versions. I 
will pass this on to the system admins/stakeholders.

Thanks,
Samuel Smith





view thread (6+ messages)  latest in thread

Message-ID: <d3b463fe-e974-6ef2-0a1a-f931b5c153bd@net153.net>
Permalink:  ../d3b463fe-e974-6ef2-0a1a-f931b5c153bd@net153.net/
Also on:    postgresql.org/message-id/d3b463fe-e974-6ef2-0a1a-f931b5c153bd@net153.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: pgsql@net153.net
  Subject: Re: Invalid byte sequence errors on DB restore
  In-Reply-To: <d3b463fe-e974-6ef2-0a1a-f931b5c153bd@net153.net>
  References: <2c81203a-01ef-ca84-1294-91420f71dd1f@net153.net> <c16eddc71bec99ce0fa41c2160b21f59439a18bb.camel@cybertec.at> <d3b463fe-e974-6ef2-0a1a-f931b5c153bd@net153.net>

* 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