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 1gfd30-0007na-Jx for pgsql-general@arkaria.postgresql.org; Sat, 05 Jan 2019 03:54:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gfd2y-00082l-UY for pgsql-general@arkaria.postgresql.org; Sat, 05 Jan 2019 03:54:52 +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 1gfd2y-00082e-M6 for pgsql-general@lists.postgresql.org; Sat, 05 Jan 2019 03:54:52 +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 1gfd2w-0000a1-17 for pgsql-general@lists.postgresql.org; Sat, 05 Jan 2019 03:54:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id AD85812FE; Fri, 4 Jan 2019 22:54:47 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 04 Jan 2019 22:54:47 -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=DyTqT4sLx5RyC7Fl63O33c8TJx4 l+ozuZ78D+DFPwHs=; b=k53rGkvtD9+4WMEL+kZdc2O9B6g1U4Ssi2/7+SitpY9 gmZJt94dnHOTkiLKzsbkHRtBWM3XzBnc3ytC5Wfa279TBwRoR52LQU62BSIcPpQj WFe8Xi/7VejaYrbU73JN0GSutfrm/0YZOnZI3BP+7rgBHp6DdJb2tGM9FGPLWLzl i2M0icRIx4yyGkUV2YlNx03RHf3Cs4sGNE4QGMWjJigqodCkAStWUuqrZXwn7E2o VVD6xmFJTOkfQV1DYk4a6UoiOxSaaLizV6bALcGL3SJd6De7wOoZdQ3sLew4VFNa L1IlqGF6JbxEeji/LkdqHX+m0IroIQWHWARnBKKIRkA== 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=DyTqT4 sLx5RyC7Fl63O33c8TJx4l+ozuZ78D+DFPwHs=; b=j9EjBUErJqPIHAuxW62Bew 8zSJYzbdK2y2lxiCyA29Yv65TihU3ask9FFDgt9KZowEu6Pg1wSJi5qpLVP++BaF 41SQPUSyzdRPtTz+YQdBWF6LZq5G2F+duXBQ+CV4C9b5OdYJ2LnJKrMZKLN13QDs JBFTN9lKZGQSebW/Ma/4vbsmTzb+uGYFH61pphFDkKJJJCc185xzeGizGCU3k9pg Yk9kfIiS3GozBANwqNZ6mSyHKRXJ5ptVoTu4K4JxaXQNGQAVJh4XcjIJoYG6P/Zl k66xC7CPXJy+GFOMlz2ijjBdzkLixpD600BGsXmtua3D4Sxigd7f9UOSyvg6kFcA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrvddvgdeikeculddtuddrgedtkedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeei uddrvdduhedrudefjedrudeivdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrg gvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 86A46E4147; Fri, 4 Jan 2019 22:54:45 -0500 (EST) Date: Sat, 5 Jan 2019 12:54:42 +0900 From: Michael Paquier To: Jerry Sievers Cc: Jeremy Finzel , PostgreSQL General Subject: Re: Get LSN at which a cluster was promoted on previous timeline Message-ID: <20190105035442.GI4849@paquier.xyz> References: <87zhsfzuzk.fsf@jsievers.enova.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hABqaeELJqnDDeDE" Content-Disposition: inline In-Reply-To: <87zhsfzuzk.fsf@jsievers.enova.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --hABqaeELJqnDDeDE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 04, 2019 at 08:41:35PM -0600, Jerry Sievers wrote: > Take a look at the *.history file in pg_xlog or pg_wal. These files are also archived. If you want to be able to see such contents at SQL level, you would need some parsing logic like this one for example which is a toy of mine (this comes mainly from rewind_parseTimeLineHistory() if I recall correctly): https://github.com/michaelpq/pg_plugins/tree/master/wal_utils -- Michael --hABqaeELJqnDDeDE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlwwKoIACgkQnvQgOdby QH2uzRAAmIrZguErSz3WbdVNIAGC+gxsxNT74Wb28nfVbu1lt76S471qFniedT/O VpMh+EdQ+DaPrbQRUlrsBucSzRBBQTiTWkisP3AfHJ0gcHh4TpygM8gKfJ3cftvA bjjoXgW3bIEbswbUpe+3qIxcai+0aqL/vZp1THsN2q/Yt3pucqqTz8Pcz4Cyys+s eNdA6oJf7tVSYGalnif99IepQgiDtWMic0jkbDd/6VjyFCkDN7j3xR1ECXOZ5Kzb hLfECb3feXt7ZBkocE78l84s9Cf/m2W73v66nYk4Dzdg1Je3Y1cbRT6ExrqrBOUW CXBq6+xLLPaSo+63dAks7A7uF/rwXrMknR9Dl3vG6zNWlD8QxgdPQgyIL3xXveND EgoP/dUPXuvPjK4ZkTPRE1IU+nW0DTejWr5g2+JLlKwxK96jtpSLXEGKcQw5/Hpb es++GXv3jWy2ItjxZ+FH0NyYItw/+YKsnfA7zkL6x7+uXfqZNfsd7bsuj24pRXmx EADMi/ymNUQGsImrvZn5Q630F27M6pR0GLyl13gXY8M6nVGY2VNnQsfuHHqyCIUc 3/oSfvknO6VJJdt64FC81+0KnZQ08EFPjoFFZ8ryCKEREHw+ANFPmCNL1WcFH6ko HwZWZh13/OB/QY9i3xywTFg/VGqKh51PIjcmWxIoFB4CpVT+/o8= =uV8k -----END PGP SIGNATURE----- --hABqaeELJqnDDeDE--