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 1jDhDB-0002OB-IS for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 04:18:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDhDA-0005GJ-83 for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 04:18:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDhD9-0005FK-Ur for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 04:18:43 +0000 Received: from [162.222.244.8] (helo=net153.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDhD6-0007Ou-Q0 for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 04:18:43 +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 58C8BD7 for ; Sun, 15 Mar 2020 23:18:35 -0500 (CDT) To: pgsql-general From: Samuel Smith Subject: Invalid byte sequence errors on DB restore Message-ID: <2c81203a-01ef-ca84-1294-91420f71dd1f@net153.net> Date: Sun, 15 Mar 2020 23:18:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 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 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? Regards, Samuel Smith