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 1jRi7f-0004W0-8e for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 20:06:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jRi7e-0004Jg-4p for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 20:06:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRi7d-0004JQ-Tl for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 20:06:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRi7b-0007Jh-Qd for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 20:06:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 03NK6rgb010996; Thu, 23 Apr 2020 16:06:53 -0400 From: Tom Lane To: Justin King cc: pgsql-general@lists.postgresql.org Subject: Re: walreceiver termination In-reply-to: References: <18350.1587664068@sss.pgh.pa.us> Comments: In-reply-to Justin King message dated "Thu, 23 Apr 2020 14:51:22 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10994.1587672413.1@sss.pgh.pa.us> Date: Thu, 23 Apr 2020 16:06:53 -0400 Message-ID: <10995.1587672413@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Justin King writes: > I assume it would be related to the following: > LOG: incorrect resource manager data checksum in record at 2D6/C259AB90 > since the walreceiver terminates just after this - but I'm unclear > what precisely this means. What it indicates is corrupt data in the WAL stream. When reading WAL after crash recovery, we assume that that indicates end of WAL. When pulling live data from a source server, it suggests some actual problem ... but killing the walreceiver and trying to re-fetch the data might be a reasonable response to that. I'm not sure offhand what the startup code thinks it's doing in this context. It might either be attempting to retry, or concluding that it's come to the end of WAL and it ought to promote to being a live server. If you don't see the walreceiver auto-restarting then I'd suspect that the latter is happening. regards, tom lane