Re: [ADMIN] does wal archiving block the current client

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jeff Frost <jeff(at)frostconsultingllc(dot)com>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [ADMIN] does wal archiving block the current client
Date: 2006-05-23 15:17:12
Message-ID: 1148397432.2646.837.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On Tue, 2006-05-23 at 11:09 -0400, Tom Lane wrote:
> Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > On Tue, 2006-05-23 at 10:53 -0400, Tom Lane wrote:
> >> I think we just need a PostmasterIsAlive check in the per-file loop.
>
> > ...which would mean the archiver would not outlive postmaster in the
> > event it crashes...which is exactly the time you want it to keep going.
>
> Postmaster crashes are not a problem in practice; we've been careful to
> keep the postmaster doing so little that there's no material risk of it
> failing. If the postmaster dies it's almost certainly because someone
> killed it, and you really want the child processes to close up shop too.
>
> (If we did want the archiver to keep running, it shouldn't have any
> PostmasterIsAlive check at all; I can't see a reason why completing
> one iteration of the outer loop is a better time to stop than any
> other time.)

This does at least solve the fast restart problem, so look on -patches
in a few minutes.

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2006-05-23 15:26:44 Re: [ADMIN] does wal archiving block the current client
Previous Message Tom Lane 2006-05-23 15:09:24 Re: [ADMIN] does wal archiving block the current client connection?

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2006-05-23 15:19:57 Re: error-free disabling of individual child partition
Previous Message Tom Lane 2006-05-23 15:09:24 Re: [ADMIN] does wal archiving block the current client connection?