pg_rewind success even though getting error 'record with incorrect prev-link'

From: Abdullah Al Maruf <maruf(dot)2hin(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_rewind success even though getting error 'record with incorrect prev-link'
Date: 2019-01-29 13:13:11
Message-ID: CANzStTDB7ipc9X-0PvLWdpwG18zCk4Ot49gtMZ8r7yPdS0oUBQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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
LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG: record with incorrect prev-link 10000/21B0000 at 0/B000098
```

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sathish Kumar 2019-01-29 13:14:19 Re: Anonymize Data
Previous Message Pavel Stehule 2019-01-29 13:02:23 Re: Help : Update and insert record based on several value in the parameter