Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jDteY-0006X3-BW for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 17:35:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDteU-000344-Gb for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 17:35:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDteU-00033x-39 for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 17:35:46 +0000 Received: from [162.222.244.8] (helo=net153.net) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDteR-0002KZ-7t for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 17:35:44 +0000 Received: from [IPv6:2001:470:b965:1:597e:c172:319:46da] (unknown [IPv6:2001:470:b965:1:597e:c172:319:46da]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by net153.net (Postfix) with ESMTPSA id 2627449D for ; Mon, 16 Mar 2020 12:35:40 -0500 (CDT) Subject: Re: Invalid byte sequence errors on DB restore To: pgsql-general@lists.postgresql.org References: <2c81203a-01ef-ca84-1294-91420f71dd1f@net153.net> From: Samuel Smith Message-ID: Date: Mon, 16 Mar 2020 12:35:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 162.222.244.8 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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