Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fv7Pz-00016u-Ki for pgsql-general@arkaria.postgresql.org; Wed, 29 Aug 2018 20:50:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fv7Pw-0002rr-Qq for pgsql-general@arkaria.postgresql.org; Wed, 29 Aug 2018 20:50:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fv7Pv-0002qz-P5 for pgsql-general@lists.postgresql.org; Wed, 29 Aug 2018 20:50:20 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fv7Pm-0006qf-0A for pgsql-general@postgresql.org; Wed, 29 Aug 2018 20:50:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 7F4B453D; Wed, 29 Aug 2018 16:50:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 29 Aug 2018 16:50:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=a6EE5sl5uEsETvxgKABBWVZlmcxTWP1eI0aqcUxXjxY=; b=zkRkm4Kw Y14uVXCdIaAcdRkrDYu6RR6UQ1PjMFDLcX4wEkLQQTw1i3r+vKA5a7a5ELAdY9YP lAnRDGw5PIjrvPLmePoh+FuoVUvxyFBib6OqMXQyRyNE9n3RpDvuSBg8+Ge4+paJ 4O9mOIWipBG/bpVnDqtjKS/9tRaR81paQO+HGs8MEpw6TIga6iPe4a5e164/KFvy YocgLoqS/oLc55VcjSd5g8bBP9l2cjGUfDgz7k4LWlDK5te1PB+kqguwT+BkXUAU btqrPeiE7/krYTkiWrtFaQ1gf2Rt/UEYlaVY9YZn8zUc4aXFLHvKYe/6wtXOYrRl BWeEcrje1tcadA== 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-sender :x-me-sender:x-sasl-enc; s=fm3; bh=a6EE5sl5uEsETvxgKABBWVZlmcxTW P1eI0aqcUxXjxY=; b=rXolm/Zjyvktq9B4yQ0X4M0Ds+vrF9oc9+fwo9/xXzQR8 xlEHcYfJOyH+5LuFLZQbnBP1selXtgNGPE0Bd2e6YLJOug9ijVGko+8Nn+snKZdL oyezNbnRMhnN31h67tB+5iAE73gdtR9KkIgChnSqN4Z6Hc/4IuPXhytppv5uT5bI 2OycwCz9QAmQZv/nbKBPa6PhMkuo9gvUEllVgmbfitFMSWkeDPpelctJ1S5DeqUh tlNX9loLuXVdTIngAQa3AbjUfQOdpcQoGbm1HZC5ysEZtrlD0iXajrs7lLBsuZz9 0ctyYUxmPx+fp7VBe8SdxNQivVBlLegjf6SrjNsZA== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (unknown [208.91.3.26]) by mail.messagingengine.com (Postfix) with ESMTPA id 02DFBE421C; Wed, 29 Aug 2018 16:50:05 -0400 (EDT) Date: Wed, 29 Aug 2018 13:50:03 -0700 From: Michael Paquier To: Dave Peticolas Cc: Alexander Kukushkin , pgsql-general Subject: Re: WAL replay issue from 9.6.8 to 9.6.10 Message-ID: <20180829205003.GD5903@paquier.xyz> References: <20180829115412.GB5903@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JwB53PgKC5A7+0Ej" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --JwB53PgKC5A7+0Ej Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 29, 2018 at 09:15:29AM -0700, Dave Peticolas wrote: > Oh, perhaps I do, depending on what you mean by worker. There are a couple > of periodic processes that connect to the server to obtain metrics. Is that > what is triggering this issue? In my case I could probably suspend them > until the replay has reached the desired point. That would be it. How do you decide when those begin to run and connect to Postgres. Do you use pg_isready or similar in a loop for sanity checks? > I have noticed this behavior in the past but prior to 9.6.10 restarting the > server would fix the issue. And the replay always seemed to reach a point > past which the problem would not re-occur. You are picking my interest here. Did you actually see the same problem? In 9.6.10 what happens is that I have tightened the consistent point checks and logic so as inconsistent page issues would actually show up when they should, and that those become reproducible so as we can track down any rogue WAL record or inconsistent behavior. -- Michael --JwB53PgKC5A7+0Ej Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAluHBvsACgkQnvQgOdby QH00mg//bvo5NaAZw3gwvBRVoO2QDt0Sg8eo2elzOdPgxzYT4hJfU26fe7MMmnql BlkaX2XVxEn3/8ZP4G2084am0B6V/AS4LdY60w3qcEbgOXRnKcTa2vthsu4sjDgY 17p/bUFShe/0AI4bgXU7EYo2ywSBgEDpc+DFXTgvL26jeitgI7eBIPOKhirfRiX9 xuAvvvSz2z2ep0bnjvmwjClIg/M/vDqTjKsMNhgCg0pgpi/4lMicDpjxjVK1sooX yfXgg1HojEizhW1oAiJKGbWXQjPbXO6aFITC7CPYQpTpVGL1ZROdcYKml2YbWc1f 0YNXO6qemtO44HKKJPi9tiqKvQHxTvOHF4pBKqLe79oRIFi2buW7RKvpweXVJmU6 VS7MyqPXCFULA41+c0fiRJfrsykZf+C0ij2e5y7NiNb8R9A7lKa6dMVGl9A1vCQZ 2YSaALtw6y5QXf6qpqGmQ67txm4ZJZ4K9VOb95838SqWqFMLUeWWicf64LXS4V0z dbxPqSdGfTUj6Ubla9J+49/RkwAfqXS8ASnYr4EGX2PfxMW2MlXF6o7+VP90jf9v N0jhdM2S9Crnvc8hFdN+D23LL7279NugGpx7YVQOsF7J3gMcdq2bYBPwKYY9uNgy K7D85apPLDtCgtDhdz5wEUyq4Ay50G7GJ4Uc+30bWE5xnc9Heow= =Mg3x -----END PGP SIGNATURE----- --JwB53PgKC5A7+0Ej--