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.89) (envelope-from ) id 1hUeBe-0002WC-Lp for pgsql-general@arkaria.postgresql.org; Sat, 25 May 2019 21:26:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hUeBc-0005GC-2p for pgsql-general@arkaria.postgresql.org; Sat, 25 May 2019 21:26:40 +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 1hUeBa-0005Fr-6C for pgsql-general@lists.postgresql.org; Sat, 25 May 2019 21:26:39 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUeBO-0004SB-Sr for pgsql-general@lists.postgresql.org; Sat, 25 May 2019 21:26:35 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9FF0B364; Sat, 25 May 2019 17:26:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 25 May 2019 17:26:23 -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=fm3; bh=b +sOdVpnltPOmcStFptNOf9FJnU8lNFl/BE+q9eVcf4=; b=Cj/PJs3ln3DyoOM5K oiecF2tTXHZBThWw4qukxTT104R0UHuqOr0o9mylrZamAcaBxwmFcjmEjrJIxfSK QCIlkC6nzQVqgE5244ezLh0RJxU3I1aToEqTZ2OIAqAwrNptAWNccVO9NcrRVL7k 4RT0Elhjbtkm0KyF3PKGr8KDoT7Q/YQiU1kRxP9CRgVEv/lSgMt2X8LBXNoRNnkR Le9/o5Y6bJlfkgOfqw+Yy5MJYQyTYT1LgtbF53yjkat/6ILIFy5lnZ6dyOhIaqjr RYyQHfjqKOdedO25G5r/BKvoTSSaSqU4AqGOUGpMsJQhM9v9jQRcYNqWDvjzsYWL b6nLA== 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=b+sOdVpnltPOmcStFptNOf9FJnU8lNFl/BE+q9eVc f4=; b=M8TGr9md3Q/cYgrszNvkxc45+0m377TB0fdnOPRhKUM13mjjMJxn2V/Ce sXrj3ZrsMtRaYxdapzi4KvgL2feD5lvxvCp8U40C9qRibz8lR56q0tu3oDFSzNoj KC3XxLmqtMKLeNktTy9OjAQkMEX6fwy/i3lsC8G5DmPBTXyrKxTw1D5rq5Wy7CuX yXXq16GxYg9W/Q3/3q+18Hekk84X4aq0X2caaxEzqXvpd0mmnZXAvksLtzWLyk7C d/2KT7W9gYKhbMBg72ealgYaGaUh2sFQb1PsKQgj9jqVJXFXiAD5iTO/ORHw6p/l 8+IgOjTmdyaAbNo0jg7FqkpYifeSw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddukedgudeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepjedurddvuddvrddu hedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 1FCEF380086; Sat, 25 May 2019 17:26:22 -0400 (EDT) Subject: Re: pg_basebackup from 9.4-bdr to 9.4 results in corrupt index To: =?UTF-8?B?SsSBbmlzIFDFq3Jpcw==?= , pgsql-general@lists.postgresql.org, Ron References: <6414cdc6-106e-19c7-dec7-8b3f1f5e8245@gmail.com> From: Adrian Klaver Message-ID: <13318921-b017-30eb-ed0b-c0271132df2a@aklaver.com> Date: Sat, 25 May 2019 14:26:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: 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 5/25/19 11:46 AM, Jānis Pūris wrote: > Hi Ron, > > I can not reproduce this error on BDR_Node_2 (it is not BDR_Node_1 as > stated before. Typo) > > I've been successful in transferring the data with pg_dump on BDR_Node_2 > and then restoring it on Regular_Node_1. Then running "select * from > information_schema.sequences;" all is OK. So the issue is that a binary backup/restore via pg_basebackup fails but a logical backup/restore via pg_dump/pg_restore works, correct? You might want to take a look here: https://github.com/2ndQuadrant/bdr/issues/140 It might make sense to you, it does not to me. Looks to me something is being done on the binary level that makes this difficult. I guessing you are going to have to talk to the BDR folks. > > The problem with this approach is that I'm required to have minimal > downtime in this transition and we have a lot of data to transfer, which > would be lengthy process. > > Thank you in advance. > Best regards, Janis Puris > > On 25 May 2019 at 19:16:11, Ron (ronljohnsonjr@gmail.com > ) wrote: > >> 1. Are you sure that you removed all BDR from the node? >> 2. Is the corruption there in BDR_Node_1? >> 3. Can you rebuild the indexes? -- Adrian Klaver adrian.klaver@aklaver.com