From: Stephen Frost <sfrost@snowman.net>
To: Michael Paquier <michael@paquier.xyz>
Cc: splarv@ya.ru
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Return codes for archive and restore commands
Date: Wed, 28 Nov 2018 22:27:31 -0500
Message-ID: <20181129032731.GV3415@tamriel.snowman.net> (raw)
In-Reply-To: <20181129032542.GL626@paquier.xyz>
References: <154340283171.1324.10549444217937216132@wrigleys.postgresql.org>
<20181129022347.GH626@paquier.xyz>
<20181129023957.GU3415@tamriel.snowman.net>
<20181129032542.GL626@paquier.xyz>
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
Attachments:
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: sfrost@snowman.net, michael@paquier.xyz, splarv@ya.ru, pgsql-docs@lists.postgresql.org
Subject: Re: Return codes for archive and restore commands
In-Reply-To: <20181129032731.GV3415@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox