Re: Return codes for archive and restore commands

Поиск
Список
Период
Сортировка
Искать
От
Stephen Frost
Тема
Re: Return codes for archive and restore commands
Дата
Msg-id
20181129032731.GV3415@tamriel.snowman.net
Ответ на
Список
Дерево обсуждения
Return codes for archive and restore commands PG Doc comments form <noreply@postgresql.org>
Re: Return codes for archive and restore commands Michael Paquier <michael@paquier.xyz>
Re: Return codes for archive and restore commands Stephen Frost <sfrost@snowman.net>
Re: Return codes for archive and restore commands Michael Paquier <michael@paquier.xyz>
Re: Return codes for archive and restore commands Stephen Frost <sfrost@snowman.net>
Re: Return codes for archive and restore commands Michael Paquier <michael@paquier.xyz>
Re: Return codes for archive and restore commands Stephen Frost <sfrost@snowman.net>
Re: Return codes for archive and restore commands Oleg Bartunov <obartunov@postgrespro.ru>
Re: Return codes for archive and restore commands Олег Самойлов <splarv@ya.ru>
Greetings,

* Michael Paquier (michael@paquier.xyz) wrote:
> On Wed, Nov 28, 2018 at 09:39:58PM -0500, Stephen Frost wrote:
> > Having discussed this quite a bit lately with David Steele and Magnus,
> > it's pretty clear that we need to completely rip out how this works
> > today and rewrite it based around an extension model where a background
> > worker can start up and essentially take the place of the archiver
> > process, with flexibility to jump forward through the WAL stream,
> > communicate clearly with other processes, handle failure to do so
> > gracefully based on the specific cases, etc.
> 
> Hm.  When an instance state is in PM_SHUTDOWN_2, the postmaster
> explicitely waits for the WAL senders and the archiver to shut down.  So
> I think that you would need more control regarding the timing a bgworker
> should be shut down first to be completely correct.

Yes, it couldn't be exactly the same as a generic background worker,
that's a good point.  We definitely need to make sure that the
postmaster waits for the archiver to shut down, as it does for the WAL
senders.

Thanks!

Stephen
В списке pgsql-docs по дате отправления
От: Michael Paquier
Дата:
От: Craig Ringer
Дата:
Сообщение: Re: First SVG graphic
FAQ