Re: Add recovery to pg_control and remove backup_label

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Add recovery to pg_control and remove backup_label
Дата
Msg-id 20231120234140.yc7p6wbkfji4tu6n@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: Add recovery to pg_control and remove backup_label  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
Hi,

On 2023-11-20 14:18:15 -0700, David G. Johnston wrote:
> On Mon, Nov 20, 2023 at 1:37 PM Andres Freund <andres@anarazel.de> wrote:
> 
> >
> > Given that, I wonder if what we should do is to just add a new field to
> > pg_control that says "error out if backup_label does not exist", that we
> > set
> > when creating a streaming base backup
> >
> >
> I thought this was DOA since we don't want to ever leave the cluster in a
> state where a crash requires intervention to restart.

I was trying to suggest that we'd set the field in-memory, when streaming out
a pg_basebackup style backup (by just replacing pg_control with an otherwise
identical file that has the flag set). So it'd not have any effect on the
primary.

Greetings,

Andres Freund



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Add recovery to pg_control and remove backup_label
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Why is hot_standby_feedback off by default?