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 1gtOa1-0001WG-OX for pgsql-general@arkaria.postgresql.org; Tue, 12 Feb 2019 03:17: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 1gtOa0-0002Ui-6R for pgsql-general@arkaria.postgresql.org; Tue, 12 Feb 2019 03:17:52 +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 1gtOZz-0002Ub-R1 for pgsql-general@lists.postgresql.org; Tue, 12 Feb 2019 03:17:51 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtOZx-0004Oa-AG for pgsql-general@lists.postgresql.org; Tue, 12 Feb 2019 03:17:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D34A130F5; Mon, 11 Feb 2019 22:17:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 Feb 2019 22:17:48 -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=RbPVvtlpK3N5DSxvsJocLjP35UN KQ/N4GV8btRNU6HI=; b=xSCbS/WwmryJ85/Ug6nFbA0nZPDZCgZD6IdO1FKS4VD 1IlEucuhJP1/VhCSb0eREO9F1WkuGikBz0rmTwLlEDEKWH48BBnmtU/IvGr5hLdr ebKUZD+PqEfAvXkUm+MROn5rM/bc7WqBxNMCGIBjhJ9D347Zw/iCvXbSpFfuE9gA s9zsnTE+1MjB1bxV+FnH0Nu4Nte2Ds/68z8tvo6A5pzTQH3saozPJ94x4nco1cdu 1oF0Az2keLu02Of0F7i55bZLqq0asOF/d86ysRrHte4wGKMF4YY16AOtOp+CO0Ic yEWhhi2hH7DuKNrmtM4tV6eo+gS4ADwH7mVEo3C3TGw== 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=fm2; bh=RbPVvt lpK3N5DSxvsJocLjP35UNKQ/N4GV8btRNU6HI=; b=Cj3MRbO4JNBKtSEQca3+0R 1iaUrK8U0F1uuIrxHfNexC/PRcVmc7362/gADmz+fP5cY5cGXYGrLTUpCMfLYNhg /y4YthjINbjpAXG4tHwRqUGesLeLJ9dQsTXN3qum8FKB1w5ga0j7RchlzwPSai/C zmH16r3/cpDHTarasv1oMQzoPDFDeBrkQylSlWjhneoIVquZliQm/HmenBDuQNt8 q9umypyp+U/9KyKLLueFs0YcEvXLnG0E2my08w3CA0PpJshD6sGK4xNDUOmrEqta m7z7cofAX/5ADg4rbUbKSkwQOMsbuX1BH+Ye/lzgg5kFvG9GUEYynrr6Zrfm9HoQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddttddgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdejtd dmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddunecuhfhrohhmpefoihgt hhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqne cukfhppeduudekrddvgedurddvgeelrddukedvnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1f9b6.ap.nuro.jp [118.241.249.182]) by mail.messagingengine.com (Postfix) with ESMTPA id 0CB8310317; Mon, 11 Feb 2019 22:17:44 -0500 (EST) Date: Tue, 12 Feb 2019 12:17:33 +0900 From: Michael Paquier To: =?iso-8859-1?Q?Mart=EDn_Fern=E1ndez?= Cc: Laurenz Albe , "pgsql-generallists.postgresql.org" Subject: Re: Promote replica before being able to accept connections Message-ID: <20190212031733.GG1475@paquier.xyz> References: <950236c827942575381949675e8ad709a38ca771.camel@cybertec.at> <5c618d9da914d363cd000005@polymail.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jt0yj30bxbg11sci" Content-Disposition: inline In-Reply-To: <5c618d9da914d363cd000005@polymail.io> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --jt0yj30bxbg11sci Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 11, 2019 at 06:59:27AM -0800, Mart=EDn Fern=E1ndez wrote: > That makes sense! >=20 > Thanks for the quick reply Note that PostgreSQL 9.4 has introduced a new parameter in recovery.conf that allows recovery to finish exactly when a consistent state has been reached: recovery_target =3D 'immediate' So that's basically what you are looking for. Now you are on 9.2, and new features are not back-ported. -- Michael --jt0yj30bxbg11sci Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlxiOs0ACgkQnvQgOdby QH1zEg/9FPnaCy/zzaXcFID9l6nWl6EtvEgvbuQEMy8KdezmD4TfdiHXOQOUV4r5 N7udxfD++AmHFVuzhkVBk3g/q+JslYpqIwFRNiR3WAVWOz3GQR1VLRftlphXfozt VsImosrAB0R2signHqsgsW1aqiSPt2ygxWRuul5+zGb5QxBttcFNpvpp3qidlB5B UHI0PSHmO/Gy0nqGkUFfIHGEz4mz9l48vukmZwPhUs3ShAuggdRcwncxlwzGrDjm 5iW/b63RoeIeCvmJgOaY3ep6LOUemDwGHi4yWTV/QBvLufnzIWXFDHiwMrMkP5Vm nusey7y4OsuKEbn6Atk2/X2M+eH6nBDSL/Reyx1YNj/SHhuYBrd/wnVJQSvLpFl4 +HEKiREYrETwGFkKLq/dv6CZroFzPoD75M+oT/CBYah1dHox+WOou4VVodWlLFpt WNO6zMfkdOKdJ4IXdBMwpPiSYvzwYuy7whPY3sy93xjjBt6/te43mHReGccazUBi Me1GQC8S5cMbcNsXpOfOGJtF4yXJCuedAmn/5lCNukBfvRUVo+rcGjnSExB76qfT K9OVpT8bfYO51g+8c2uR9rQoRa1eVQGQXOExIvxXjoba8mp5OPuT+eR2qVsMfcw7 636WitzbQynWqW3nrGXbJuALct4W+qPgLiuVpKaeHi6YV3JF7gs= =QRt3 -----END PGP SIGNATURE----- --jt0yj30bxbg11sci--