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 1gfbuO-00035v-DH for pgsql-general@arkaria.postgresql.org; Sat, 05 Jan 2019 02:41:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gfbuM-0002iY-S3 for pgsql-general@arkaria.postgresql.org; Sat, 05 Jan 2019 02:41:54 +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 1gfbuM-0002hp-4n for pgsql-general@lists.postgresql.org; Sat, 05 Jan 2019 02:41:54 +0000 Received: from resqmta-ch2-11v.sys.comcast.net ([2001:558:fe21:29:69:252:207:43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gfbuF-0001zR-3S for pgsql-general@lists.postgresql.org; Sat, 05 Jan 2019 02:41:52 +0000 Received: from resomta-ch2-05v.sys.comcast.net ([69.252.207.101]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id fbtlgWiEbyXu9fbuCgKFI2; Sat, 05 Jan 2019 02:41:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1546656104; bh=+Dgw3ncJi19WotuduF0a7yRYBMD5GloNYgwnRhHUNLM=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=THyCHKxA1jEXKlLEhR9Ws04R/yF/vSoKucaUyS6aF6lonPLKhqF/un1sA6qXNn2/p QYVXTR0u0aGfnydAdRJQFSvmUMtFvQwZgR3gPzN7T68yUhN5EvB29F8mBlTinK3994 Lpgkt8bf4o1mUR2232YSnt8ZfvdTmVv7oO/w++mhPPNCPxouCGe9ASlO1cm52/AJkt cGze0H4nzaqEGs36hqc8na7v14gInkLwtoP52Qh9ehCrq6X+ywOUaR+X/SmzqdOF6J 19qBuzDweMLUk5XSkjO0vrWKb1w+1f95RZ9ZueFZnLz7GEZ+lz2bBqZ9bb1rWAj5T1 LTVcr9rmjO1Dg== Received: from jsievers.comcast.net ([12.187.116.132]) by resomta-ch2-05v.sys.comcast.net with ESMTPA id fbu3gRup1EaZDfbu3gpJMU; Sat, 05 Jan 2019 02:41:41 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedtledrvddvgdehudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomheplfgvrhhrhicuufhivghvvghrshcuoehgshhivghvvghrshduleestghomhgtrghsthdrnhgvtheqnecukfhppeduvddrudekjedrudduiedrudefvdenucfrrghrrghmpehhvghlohepjhhsihgvvhgvrhhsrdgtohhmtggrshhtrdhnvghtpdhinhgvthepuddvrddukeejrdduudeirddufedvpdhmrghilhhfrhhomhepghhsihgvvhgvrhhsudelsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepfhhinhiivghljhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Xfinity-VMeta: sc=0;st=legit Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 18D06260056; Fri, 4 Jan 2019 20:41:35 -0600 (CST) From: Jerry Sievers To: Jeremy Finzel Cc: PostgreSQL General Subject: Re: Get LSN at which a cluster was promoted on previous timeline References: Date: Fri, 04 Jan 2019 20:41:35 -0600 In-Reply-To: (Jeremy Finzel's message of "Fri, 4 Jan 2019 19:36:53 -0600") Message-ID: <87zhsfzuzk.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jeremy Finzel writes: > I am having a hard time finding out how I can easily determine at > which LSN a streamer was promoted after promotion.=C2=A0 A related > question is that if I pause wal replay, I am able to see the last > replayed LSN but I can't simply immediately promote. Take a look at the *.history file in pg_xlog or pg_wal. > I want to know the state of the streamer post-promotion with respect > to the master by getting the LSN at which it was promoted. > > Thanks, > Jeremy > > --=20 Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net