New timeline when starting with a restored data dir

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

New timeline when starting with a restored data dir

Yuri Kanivetsky
Hi,

I'm trying to set up Barman, and I've noticed that PostgreSQL 10
creates a new timeline when starting with a restored data dir.
Particularly, when WAL files are delivered via restore_command. When
WAL files are copied to pg_wal dir, no new timeline is created. Is it
to be expected? Can you explain?

I decided to ask here first, since you might know better how
PostgreSQL operates.

Thanks in advance.

Reply | Threaded
Open this post in threaded view
|

Re: New timeline when starting with a restored data dir

Олег Самойлов
It’s normal behaviour to create a new timeline, when a PostgreSQL slave become a new master. This is for what timelines were designed.

> 19 нояб. 2018 г., в 0:50, Yuri Kanivetsky <[hidden email]> написал(а):
>
> Hi,
>
> I'm trying to set up Barman, and I've noticed that PostgreSQL 10
> creates a new timeline when starting with a restored data dir.
> Particularly, when WAL files are delivered via restore_command. When
> WAL files are copied to pg_wal dir, no new timeline is created. Is it
> to be expected? Can you explain?
>
> I decided to ask here first, since you might know better how
> PostgreSQL operates.
>
> Thanks in advance.
>