Re: Proposal: improve shutdown during online backup

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Proposal: improve shutdown during online backup
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C201ED197D@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Proposal: improve shutdown during online backup  (Greg Smith <gsmith@gregsmith.com>)
Список pgsql-hackers
Greg Smith wrote:
> > 1) On "pg_ctl stop|restart -m smart", check if online backup is
> >   in progress and do not shutdown in this case (treat the online
> >   backup like an open connection).
>
> As long as you give a warning as to the cause.  While you're in there, I
> think more output in general about the reason why a smart shutdown failed
> would be nice as well.

I'll look what I can do.

> > 2) On "pg_ctl stop|restart -m fast", remove backup_label after
> >   the server has been brought down successfully.
>
> And you need a warning here as well about this fact.  I think the actual
> details associated with that label should be both printed and put into the
> logs at this time, so you know which backup you just hosed.

Sounds right.

> Maybe the label file could get renamed instead?

I agree.

> There are three options here for how "-m fast" could handle things:
>
> 1) Warning, remove backup label.

I prefer that.

Thanks for the feedback,
Laurenz Albe


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [DOCS] pg_total_relation_size() and CHECKPOINT
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [DOCS] pg_total_relation_size() and CHECKPOINT