New timeline when starting with a restored data dir

Started by Yuri Kanivetskyover 7 years ago2 messagesgeneral
Jump to latest
#1Yuri Kanivetsky
yuri.kanivetsky@gmail.com

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.

In reply to: Yuri Kanivetsky (#1)
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.

Show quoted text

19 нояб. 2018 г., в 0:50, Yuri Kanivetsky <yuri.kanivetsky@gmail.com> написал(а):

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.