Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jS8j5-0007Jv-2r for pgsql-committers@arkaria.postgresql.org; Sat, 25 Apr 2020 00:31:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jS8j3-0006nq-UR for pgsql-committers@arkaria.postgresql.org; Sat, 25 Apr 2020 00:31:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jS8j3-0006nj-Ot for pgsql-committers@lists.postgresql.org; Sat, 25 Apr 2020 00:31:21 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jS8j1-0004Bq-BL for pgsql-committers@lists.postgresql.org; Sat, 25 Apr 2020 00:31:20 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BA76D5C0197; Fri, 24 Apr 2020 20:31:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 24 Apr 2020 20:31:17 -0400 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=fm1; bh=tnrvw92UYozOl+ZLKUNrby6QGyP 7+obXAMOW/sKI62g=; b=h7HOXTp4+xAV5zpxBSBH+t64hKMsDH00asEu00O7j3T Tl1cWLQw0e97f5KAqpx6ZVdnsiKeXh8DrqITAtyhTC9XEH0d0aS85qRY5o+Ya9CU Guvkkgu3LwhrZZ6ZFMVMGZGsSUYJ0gy5Z4ZPS13VHBj3CvWc3e42kwKpbUo4tJzz G5kQE2Mh17Jus9tH4y9N+ZKdgMw3BJze1Q7PInqQ6mlt8i56FNNsU1KWdw+wU3zG 8gtnbQyBiLt2mHpxzYLUenCLCuRgRQuQEpeYe538a+y1dQsiVjLOqKiN5KMT2h6T mw2lIdelY17EJFndEjtF/sUAQD7JC8WrWQwckktY84A== 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=tnrvw9 2UYozOl+ZLKUNrby6QGyP7+obXAMOW/sKI62g=; b=MWtkMSbn+LesBH/LFrZcNI F/HJnqXevXDPzeVano5hyOFMxWA5GjWluOweBWiVGjzVbUUBktztrOcDTVTO9P// RvJ7gbyaMHXcrvyS6/kzvfPGNyAINMtk9LuzqKGcOM/7dwQMwqSg8H7XuWs41BcK cL9mHICR94/xf+BHsVPIYFqSqTD8ldPD1wFTJuQReTXtkPFwoUsEFrdCEmw9AM7l H8eSQOy71CcP9wSf4/t4filotD0t08RF+jqFekZ2lzHn7J9IZq5VtSs1OxKWlWiE npoeOTZchmclm7yI6eGVdKGjDG9L3Y0x2uGb7CZOWi2lgmKV2b4lBQQHU8pNc4RA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrhedvgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecukfhppeduuddurddutd dvrddukedtrddukeehnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghi lhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 95A1B3065DDB; Fri, 24 Apr 2020 20:31:16 -0400 (EDT) Date: Sat, 25 Apr 2020 09:31:14 +0900 From: Michael Paquier To: Kyotaro Horiguchi Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix handling of WAL segments ready to be archived during crash r Message-ID: <20200425003114.GB1474@paquier.xyz> References: <20200424005929.GK33034@paquier.xyz> <20200424011437.GA806193@paquier.xyz> <20200424.173021.437425683089236305.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline In-Reply-To: <20200424.173021.437425683089236305.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 24, 2020 at 05:30:21PM +0900, Kyotaro Horiguchi wrote: > I think we can reimplement them by waiting > pg_stat_archiver.last_failed_wal at least for archive_mode=always > case. I'm not sure about the case where archive_mode=on, though. Yeah, the second case is more tricky, and there is no point to add a poll query using pg_stat_file() on a .ready file either. -- Michael --dc+cDN39EJAMEtIO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6jhNIACgkQnvQgOdby QH1vfRAAgNGYh4dy8ia8QxuEEFc0tGPIbfz61Xuf/Vf5YLrSyEV+TtH76198+7jp m0GQO4SD986R06b0OmbUV7se3GHZvuuauIPhz3VGt/iNR72vkKJEeywtASXP5M2C museKTKmvMkbzNKZ/GXqZschQDzllfMRkcKMUXAUZTnBbXsj5UBdWCLVo4Sz+RZk SqR60Yv2yahrd1E+nf7sQ14RPE8sRe3xGztPZlaAG87XscWjhNaZENJaEXW6PeeG Rdsraem6/aSwQtjPYr6uRo3tJ4s5p0bPWUNIx/BpTv/58w3zklxJXrBOuvRHVTgQ sqaZvoXAoy1ty4RNGBUteNEKKNbwD9NA9luR+bIkJ7gYqh6/QMm9dkYGwqxDWtQT QU6kaCyroBMmsyixm9+ILjuZVTDVHsXVQ2hYStBbSKt5wFgLJB+jW59D7t0lRWoM JlX3hCfiCYVfB6tz9akG1mY9o5rv4q9hP/w5sn0vrXoLyr8mWGu+c81PJ1qaqy23 WDAjeRsdxY9BT8QbVJgpS2qiU/+P4y9retA+/fRRnrO13Pto6FxSG393sLRhq4pC ekKSghXQ3GcGaKsSGtIJlaJ0B1uZYolSyEpS1e56ZNLTemG0J9Pqbb+ke/dywWh1 6oGWUME7L/3cfQ56ixAZKSziZtpu8EjwLvxcCsCi/zv4fjxhgm4= =5CWM -----END PGP SIGNATURE----- --dc+cDN39EJAMEtIO--