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 1iFnxw-0008GV-C8 for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 23:23:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFnxv-0002Hn-00 for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 23:23:26 +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 1iFnxu-0002Hd-Jt for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 23:23:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iFnxs-0007gU-B7 for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 23:23:25 +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 x92NNKMd026927; Wed, 2 Oct 2019 19:23:20 -0400 From: Tom Lane To: Stephen Frost cc: =?utf-8?B?QWxlxaEgWmVsZW7DvQ==?= , pgsql-general@lists.postgresql.org Subject: Re: Wall shiping replica failed to recover database with error: invalid contrecord length 1956 at FED/38FFE208 In-reply-to: <20191002220914.GS6962@tamriel.snowman.net> References: <20191002220914.GS6962@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Wed, 02 Oct 2019 18:09:15 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <26925.1570058600.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 02 Oct 2019 19:23:20 -0400 Message-ID: <26926.1570058600@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > * Aleš Zelený (zeleny.ales@gmail.com) wrote: >> But recovery on replica failed to proceed WAL file >> 0000000100000FED00000039 with log message: " invalid contrecord length >> 1956 at FED/38FFE208". > Err- you've drawn the wrong conclusion from that message (and you're > certainly not alone- it's a terrible message and we should really have a > HINT there or something). Yeah, those messages are all pretty ancient, from when WAL was new and not to be trusted much. Perhaps the thing to do is move the existing info into DETAIL and make the primary message be something like "reached apparent end of WAL stream". regards, tom lane