pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Clécio Anderson <clecioanderson@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: pg_basebackup and timeline issues
Date: Wed, 20 May 2020 09:59:52 +0200
Message-ID: <5e7267f0612ff2256abf7883103b605351059aa8.camel@cybertec.at> (raw)
In-Reply-To: <CAE9pMZYbrLbAJpgUrhkbSdJ21qhnWyS3fRJ=r-27mzq61MW-gg@mail.gmail.com>
References: <CAE9pMZYbrLbAJpgUrhkbSdJ21qhnWyS3fRJ=r-27mzq61MW-gg@mail.gmail.com>

On Tue, 2020-05-19 at 15:02 -0300, Clécio Anderson wrote:
> Sometimes when I need to run pg_basebackup to recreate a slave server I receive the error message below:
> Latest checkpoint is at 427A/6D6743F0 on timeline 2, but in the history of the requested timeline, the server forked off from that timeline at 0/0
> When it happens.. After I edit master's history file pointing to a timeline referenced by the slave's slot I can issue the pg_basebackup without hassle.
> I would like to know If there is any way to ignore or bypass this timeline lookup on master`s history file when issuing pg_basebackup command on slave server.

Not sure, but did you remove any *.history files in the WAL directory?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <5e7267f0612ff2256abf7883103b605351059aa8.camel@cybertec.at>
Permalink:  ../5e7267f0612ff2256abf7883103b605351059aa8.camel@cybertec.at/
Also on:    postgresql.org/message-id/5e7267f0612ff2256abf7883103b605351059aa8.camel@cybertec.at

 · 

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-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, clecioanderson@gmail.com
  Subject: Re: pg_basebackup and timeline issues
  In-Reply-To: <5e7267f0612ff2256abf7883103b605351059aa8.camel@cybertec.at>
  References: <CAE9pMZYbrLbAJpgUrhkbSdJ21qhnWyS3fRJ=r-27mzq61MW-gg@mail.gmail.com> <5e7267f0612ff2256abf7883103b605351059aa8.camel@cybertec.at>

* 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