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 1hUaSW-0001QX-K3 for pgsql-general@arkaria.postgresql.org; Sat, 25 May 2019 17:27:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hUaSV-0005Yi-A5 for pgsql-general@arkaria.postgresql.org; Sat, 25 May 2019 17:27:51 +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 1hUaST-0005PS-H3 for pgsql-general@lists.postgresql.org; Sat, 25 May 2019 17:27:50 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUaSO-0007dE-Lz for pgsql-general@lists.postgresql.org; Sat, 25 May 2019 17:27:49 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C38183AA; Sat, 25 May 2019 13:27:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 25 May 2019 13:27:40 -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=v LwLXXVEKrhve7DqyLeC2tQNLBs+9KCdhh21duHuY2E=; b=XbZO4pRCBm2+s68ow wBvm5ltJvU7M6DQl4enMcxt/5VxdZzbINAkR5cqBjNeinfeYirmFtujGsyDGCljn dY51DCmRp6j/2TL3SSfOz7ZcHL/64krSf3dIdM3iV+rHwb5AQY9Zpy3b7Rv8heZE RV9xYF9bFSHAI2zmjWKIzCQaz0EMtZVuN7oDvn247hwOGZ/0EeuAjIvaDl0tjSiM jZ0FfXKk0/sZ1H+QOSh78yN1v0bg1FiB0XYIeUTBQ4BhWgFZBvXOvVN5RmajZGwX WdV48Y4/YuWzdZeGiKPTS1x0kg3AeWXw+3vzgMNB7KkqFAnYydAD7sC59D9LWynH K6gVg== 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=vLwLXXVEKrhve7DqyLeC2tQNLBs+9KCdhh21duHuY 2E=; b=xRwIb+5badASlNfIsJi2Nc5xo5Y5iHNELsvK6y7MVh8eXvDxnXpZxQcFK D+8i3BoinQ72eRI5TMmCyIwDDsLa7HTsDNbg59V8ve3laimU6682zVQC/u4cFyGR JzA59/qJsf7ne84Eb2/GoR3ubnIXmhHghQRDZp5n3+zlwbzS2sACkEjsEEG/FA/T kFCBxR0u0ytLz9cYiMppWa+Q4LjvGa9XJmvxJ+Pd/bLxt5jZeBevb+LUKjHHv8ZF 1B6fl0ACdqoC/UnWETQfiBDws3b1cUZu4r+IPDgLKFbGzdFO+JKBtWzShWNjvr3f w6/eda9CPpspI6/kIt7EqQ3DmGvng== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddukedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuffhomhgrihhnpegsughrqdhprhhojhgvtghtrdhorhhgnecukfhppeejuddr vdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrd hklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 73B2B380085; Sat, 25 May 2019 13:27:39 -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 References: From: Adrian Klaver Message-ID: <6be90db7-6348-3ea1-dd2b-bcb94f3d7901@aklaver.com> Date: Sat, 25 May 2019 10:27:38 -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 9:49 AM, Jānis Pūris wrote: > Hello, > > I'm working with a 9.4-bdr cluster and want to move away from BDR tech > all together. So my idea was to follow instructions on > http://bdr-project.org/docs/stable/ to first strip the node from BDR > making it into "regular" node and then moving the data from this node to > official 9.4 instance. > > Environment: > > BDR_Node_1 > BDR_Node_2 > > Regular_Node_1 > > Steps done on BDR_Node_2 > 1. Part node from BDR cluster > http://bdr-project.org/docs/stable/node-management-removing.html > 2. Remove BDR from node > http://bdr-project.org/docs/stable/node-management-disabling.html > 3. Create SR slot select > pg_create_physical_replication_slot('new_cluster_node'); > > After this. Steps done on Regular_Node_1, which is 9.4.22 > 1. Init the new node with pg_basebackup with source being BDR_Node_1 I am not clear about above: 1) You removed BDR_Node_2 from cluster 2) You took pg_basebackup from BDR_Node_1 to create a new regular cluster. 3) 1) & 2) seem to be at odds with each other. > 2. Update recovery.conf and postgres.conf > 3. Start it with pg_ctl > > All seems to be working well, but for this: > > select * from information_schema.sequences; > > produces "[XX000] ERROR: cache lookup failed for index 899807" for all > of the DBs that were configured with BDR with various OID. > > I can not reproduce this error, when running query on any of the DBs on > 9.4-bdr node. > > Does anyone have any idea what may be causing this ? > Due to this I'm also unable to run pg_dump on new_cluster_node - it also > results in the same error. > > That said. For more context - If it worked, next steps would have been to > 1. Deactivate virtual IP on BDR_Node_2 > 2. Check for no replication lag on BDR_Node_2 slot "new_cluster_node" > 3. Promote Regular_Node_1 > 4. Activate virtual IP on BDR_Node_2 > > Build the new 9.4 cluster from there on. > > Any ideas / comments will be much appreciated! > > Thank you in advance. > Best regards, Janis Puris > -- Adrian Klaver adrian.klaver@aklaver.com