From: Michael Paquier <michael@paquier.xyz>
To: Abdullah Al Maruf <maruf.2hin@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_rewind success even though getting error 'record with incorrect prev-link'
Date: Wed, 30 Jan 2019 10:44:08 +0900
Message-ID: <20190130014408.GM3121@paquier.xyz> (raw)
In-Reply-To: <CANzStTDB7ipc9X-0PvLWdpwG18zCk4Ot49gtMZ8r7yPdS0oUBQ@mail.gmail.com>
References: <CANzStTDB7ipc9X-0PvLWdpwG18zCk4Ot49gtMZ8r7yPdS0oUBQ@mail.gmail.com>
On Tue, Jan 29, 2019 at 07:13:11PM +0600, Abdullah Al Maruf wrote:
> When I try to attach an old master with 'archiving set to on` as a new
> standby, `pg_rewind` doesn't throw any error, But, when the database
> starts, The following error appears:
>
> ```
> LOG: invalid record length at 0/B000098: wanted 24, got 0
> LOG: started streaming WAL from primary at 0/B000000 on timeline 2
> LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
> FATAL: terminating walreceiver process due to administrator command
This is pointing out to the end of WAL for the current timeline. You
may face it after reading a WAL segment in an area which has been used
in the past for a recycled segment.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, maruf.2hin@gmail.com
Subject: Re: pg_rewind success even though getting error 'record with incorrect prev-link'
In-Reply-To: <20190130014408.GM3121@paquier.xyz>
References: <CANzStTDB7ipc9X-0PvLWdpwG18zCk4Ot49gtMZ8r7yPdS0oUBQ@mail.gmail.com> <20190130014408.GM3121@paquier.xyz>
* 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