pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_basebackup and timeline issues
3+ messages / 2 participants
[nested] [flat]

* pg_basebackup and timeline issues
@ 2020-05-19 18:02  Clécio Anderson <clecioanderson@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Clécio Anderson @ 2020-05-19 18:02 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

Hi!

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.

Thanks!!

-- 
*Regards**,*

*Clécio Anderson de Lima Ferreira*

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_basebackup and timeline issues
@ 2020-05-20 07:59  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Clécio Anderson <clecioanderson@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Laurenz Albe @ 2020-05-20 07:59 UTC (permalink / raw)
  To: Clécio Anderson <clecioanderson@gmail.com>; pgsql-admin@lists.postgresql.org

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






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_basebackup and timeline issues
@ 2020-05-20 12:49  Clécio Anderson <clecioanderson@gmail.com>
  parent: Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 0 replies; 3+ messages in thread

From: Clécio Anderson @ 2020-05-20 12:49 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-admin@lists.postgresql.org

Yes.. It happened twice... I had a script cleaning some old files..
I needed to recreate the history file sometimes to be able to issue
pg_basebackup command on slave without errors.

Em qua., 20 de mai. de 2020 às 04:59, Laurenz Albe <laurenz.albe@cybertec.at>
escreveu:

> 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
>
>

-- 
*Atenciosamente,*

*Clécio Anderson de Lima Ferreira*

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-05-20 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19 18:02 pg_basebackup and timeline issues Clécio Anderson <clecioanderson@gmail.com>
2020-05-20 07:59 ` Laurenz Albe <laurenz.albe@cybertec.at>
2020-05-20 12:49   ` Clécio Anderson <clecioanderson@gmail.com>

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