Re: What is the correct steps if tar process is killed during pg_start_backup() and pg_stop_backup()

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: What is the correct steps if tar process is killed during pg_start_backup() and pg_stop_backup()
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B50F70D0A@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на What is the correct steps if tar process is killed during pg_start_backup() and pg_stop_backup()  (Shih Théo <galaxyshih@gmail.com>)
Ответы Re: What is the correct steps if tar process is killed during pg_start_backup() and pg_stop_backup()
Список pgsql-admin
Shih Théo wrote:
> I have goolged this issued for some time, but I do not find much valuable information.
> 
> Here is my questions, I would like to know when I invoke pg_start_backup() and execute tar for backup
> my cluster data, but due to some reasons, tar is stopped.

> Q1) Should I invoke pg_stop_backup() to
> complete the procedure if I do not want to re-tar again?

Yes, otherwise PostgreSQL remains in online backup mode.

> Q2) What if I decide to re-tar again my data,
> should I need to invoke pg_stop_backup() first and perform pg_start_backup() -> tar ->
> pg_stop_backup()?

No, that is not necessary.

Yours,
Laurenz Albe

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

Предыдущее
От: Matthieu Lejeune
Дата:
Сообщение: Re: Automatic restore corruption problem
Следующее
От: Matheus de Oliveira
Дата:
Сообщение: Re: What is the correct steps if tar process is killed during pg_start_backup() and pg_stop_backup()