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 1goevK-00031h-4G for pgsql-general@arkaria.postgresql.org; Wed, 30 Jan 2019 01:44:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goevI-0001QX-Sx for pgsql-general@arkaria.postgresql.org; Wed, 30 Jan 2019 01:44:16 +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 1goevI-0001QP-Gp for pgsql-general@lists.postgresql.org; Wed, 30 Jan 2019 01:44:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goevG-0003BE-0i for pgsql-general@postgresql.org; Wed, 30 Jan 2019 01:44:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3FDA42211B; Tue, 29 Jan 2019 20:44:13 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 29 Jan 2019 20:44:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=M+k5SItSEg0YC5jRjYyR8cDT8UG fZZR/Kjlt/iEsMdU=; b=wOyAv0QbwZhO21jOzxIte/K9LxLaUmxwjsoB2K3FeMZ jP2NZ7DZ/7slJnoT0ysPyM18x47vsEt694nxz6AHvxFQklS/+2Nsv6c0E32Tvo7M oKNwvoyXuhZtX8fyaj23DQxFS0+6GOSTGAdPvKTgFjsCEg07rWfta80JRUtinORu wKRnjcBtZGoZ5794L9piM72y8+7D40b7Z4WpDeW90mbusE4RUidAInn8qnt3+ioO ZRvzCRG/XbD5We/ulZoJblYU3v+EDJ2hfWNYl8lAFgGJgyqdUgjH50DPgTAzLpec lGcTWwL0vook3cvv2xsrbfZLJBS6bJt2bGp68wwQWnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=M+k5SI tSEg0YC5jRjYyR8cDT8UGfZZR/Kjlt/iEsMdU=; b=Yi/6pfGpDo63OYmQdInASu MBd22bpVonCWPPnSFBkbtRKziiTs5RAEfbkKmzNxGfbwlxUIutCnjcO7SfkFMaBo PxOtn6shP2VnYqfS80ge4b89VcyxfUchVpT1D+2zhWhuRDluewC3O1gF0dyhCNNz RHPVmpgGvvvY8Qj1+TcawSu+gO94VQD2hCGi8WlwflxpDipJFrLL8cDAvix+PbGC +9fnRSIfP0wJXWTk16BwK2zN1HWdKFRdAHslEY6cMSwUkE9ptQG+7yWWqN1DNAtp yUs4PTegweZpAYooVAM67R4oR4GS7ADBzR/LLYVopdYB5ySAYUrNyXUuD1l/wzvw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrjeefgdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghh rggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenuc fkphepiedurddvudehrddufeejrdduiedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehm ihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 79F60E43A6; Tue, 29 Jan 2019 20:44:11 -0500 (EST) Date: Wed, 30 Jan 2019 10:44:08 +0900 From: Michael Paquier To: Abdullah Al Maruf Cc: pgsql-general@postgresql.org Subject: Re: pg_rewind success even though getting error 'record with incorrect prev-link' Message-ID: <20190130014408.GM3121@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="B9BE8dkJ1pIKavwa" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --B9BE8dkJ1pIKavwa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 29, 2019 at 07:13:11PM +0600, Abdullah Al Maruf wrote: > When I try to attach an old master with 'archiving set to on` as a new > standby, `pg_rewind` doesn't throw any error, But, when the database > starts, The following error appears: >=20 > ``` > LOG: invalid record length at 0/B000098: wanted 24, got 0 > LOG: started streaming WAL from primary at 0/B000000 on timeline 2 > LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098 > FATAL: terminating walreceiver process due to administrator command This is pointing out to the end of WAL for the current timeline. You may face it after reading a WAL segment in an area which has been used in the past for a recycled segment. -- Michael --B9BE8dkJ1pIKavwa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlxRAWgACgkQnvQgOdby QH15ew//Qex2rphSp4NOFbECg2Z5IxjFChSyUaEXQ2xzHIFw8H7lPwUYNEBpzb5v TJF1B4SeSO7hjbkvy/9PxU9Zqx1jYZ9PkRbjsu80yTKoc59+kB1e4TSaHZKRTwOX k+xDuVPX+WfOGWvN+4G4DSbGJ49K5YHMweTR8+Ok8A9Wnxe4xJohap32rMpn1G1v W2E0MN43DE7VQlDkH+3Q/0dMcprLYPY6GzhwOJbkz6gaq+FbVCLkqdy7WjG/et60 7gfQ9zRYAn0w7L57btSBbWK3E5IPqA90VnJf/Mh7eGysSnvu/6/GMuMv9aaTmwoI gabSWQgCbd0HvMB0Il0Xi+4Cnv7rUlnJIrVcyu9LkW7Qq/CjqJ7GA8SsowLBJv5R I2wdLKCT3lKWw/WD8f/Wd0/I8z6fuw1pHeHAQ5TEnmBD8VqmbbxZidoYU5OXvmZM pbmzylVcEPb3S2s3EDzipUdTvT01rIiQ3hjmTQKlhW0RSIP83aARmWvv1N+79fwe KqkAK9ZCSastR8Fw4qTmEpSyYiHDlGbJj7m402+K2DgV5pDJ8+ki+2wLhBtrqSYP JN5kBYA2mS7ECIS0YNTTqon9v2tj8wR8O8jRgDi/iKqBUz2e53ICsQA9m4XrYMdw wrS2sfKOSLzr7X5B/MwGBfCgSOGRZJDUKgS6lG/VZ5N3difhOLw= =fT6v -----END PGP SIGNATURE----- --B9BE8dkJ1pIKavwa--