pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Aleš Zelený <zeleny.ales@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Wall shiping replica failed to recover database with error: invalid contrecord length 1956 at FED/38FFE208
Date: Wed, 2 Oct 2019 18:09:15 -0400
Message-ID: <20191002220914.GS6962@tamriel.snowman.net> (raw)
In-Reply-To: <CAODqTUaD44+ZHC6JeXXKofZSqepmp2357nht2aQ-EwQOXpaz=w@mail.gmail.com>
References: <CAODqTUaD44+ZHC6JeXXKofZSqepmp2357nht2aQ-EwQOXpaz=w@mail.gmail.com>

Greetings,

* 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).  That's an INFO-level message, not an error,
and basically just means "oh, look, there's an invalid WAL record, guess
we got to the end of the WAL available from this source."  If you had
had primary_conninfo configured in your recovery.conf, PG would likely
have connected to the primary and started replication.  One other point
is that if you actually did a promotion in this process somewhere, then
you might want to set recovery_target_timeline=latest, to make sure the
replica follows along on the timeline switch that happens when a
promotion happens.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (8+ messages)  latest in thread

Message-ID: <20191002220914.GS6962@tamriel.snowman.net>
Permalink:  ../20191002220914.GS6962@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20191002220914.GS6962@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, zeleny.ales@gmail.com
  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: <CAODqTUaD44+ZHC6JeXXKofZSqepmp2357nht2aQ-EwQOXpaz=w@mail.gmail.com> <20191002220914.GS6962@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox