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 1jDqoC-0006ja-7O for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 14:33:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDqoB-0007iC-3V for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 14:33:35 +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 1jDqo9-0007h1-3M for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 14:33:34 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDqo4-00042Y-IZ for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 14:33:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E33955C0300; Mon, 16 Mar 2020 10:33:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 16 Mar 2020 10:33:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=3 BIH6XWbPOWPK/momHowCigAsyDZSHScitJSFtlg22w=; b=uMNfE38OO33Bx2WAT ZOuhfWr/fN4zS0QMbgkGdWwDSQx9mhsLFoJOngzNx66MxReFeQJeMmt/2XzVbguw G8rCruz6hlGdCCXyXBYONkuqrggIoI1aTPLzq72SlwbFSBsDuibxex6ex9ev2T8c 9B9xZC8GOFB6gQshyTtVEagLwixrweNX5lpNSe1x5mbLtPujMK5O1jqSl6zrTM7w oenfvB2c7RBx8ar+nMergYALf7ipkr4NGYeVDtfX0rzGScMpi6BOgI5bErULZijT OQp8XwfvfkVHJ7Jk0llmnJ6AAMO26XJkwiMdxSKONfcatW7+tk/yOpGtvFxqIQgy kUeBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=3BIH6XWbPOWPK/momHowCigAsyDZSHScitJSFtlg2 2w=; b=3nUKZORqiK7IH0uiDY0M8e050dWf7fCQPu7CPJ9uINR24G9rsTC2eZIvY TP7u/LEXd/sVr+DB4AfAqEjdgqKC7eJrpqsfDPB3vGg/I5uux/QGXAm+43JbHlrc qpFPMSp+5MaLixLeuSXUnDiPXYFRmtYgujdPkEy6Lgvn8EZvAH2OyO5vH2x1E+0b boa14FJLJVyVXrfDoQxSBLySMPPOEHHbMCWDRQWeplO0Xcv+aUZwXADy8unWJF69 XuRyDoR46FQzLOVaWfvSr9eIgJX/EZ+EbkabQmwTApWA3jvJwz0ozqxm1U5u260P i+/GuoKiM6EZFXYP0pZzwMq1SdwhQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeffedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddruddvledrud elfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr ughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 3A69D3280066; Mon, 16 Mar 2020 10:33:25 -0400 (EDT) Subject: Re: Invalid byte sequence errors on DB restore To: Samuel Smith , pgsql-general References: <2c81203a-01ef-ca84-1294-91420f71dd1f@net153.net> From: Adrian Klaver Message-ID: <6dfc015b-54e6-37a0-4e5d-f22bfb15e64e@aklaver.com> Date: Mon, 16 Mar 2020 07:33:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <2c81203a-01ef-ca84-1294-91420f71dd1f@net153.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.klaver@aklaver.com