Обсуждение: New timeline when starting with a restored data dir

Поиск
Список
Период
Сортировка

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.


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

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