Skip site navigation (1) Skip section navigation (2)

Re: Clean shutdown and warm standby

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Guillaume Smet <guillaume(dot)smet(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andreas Pflug <pgadmin(at)pse-consulting(dot)de>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Clean shutdown and warm standby
Date: 2009-05-28 13:52:44
Message-ID: 4A1E972C.7070202@enterprisedb.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Simon Riggs wrote:
> On Thu, 2009-05-28 at 16:19 +0300, Heikki Linnakangas wrote:
>> Simon Riggs wrote:
>>> On Thu, 2009-05-28 at 14:04 +0300, Heikki Linnakangas wrote:
>>>
>>>> I've committed a patch to do the RequstXLogSwitch() before shutdown 
>>>> checkpoint as discussed. It seems safe to me. (sorry for the delay, and 
>>>> thanks for the reminder)
>>> Not sure if that is a fix that will work in all cases. 
>>>
>>> There is a potential timing problem with when the archiver is shutdown:
>>> that may now be fixed in 8.4, see what you think.
>> Can you elaborate?
> 
> Is the archiver still alive and working after the log switch occurs?

Yes.

> If the archiver is working, but has fallen behind at the point of
> shutdown, does the archiver operate for long enough to ensure we are
> archived up to the point of the log switch prior to checkpoint?

Yes, it archives all pending WAL segments before exiting.

Ok, we're good then I guess.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

In response to

Responses

pgsql-hackers by date

Next:From: Andy ColsonDate: 2009-05-28 13:53:47
Subject: Re: sun blade 1000 donation
Previous:From: Robert HaasDate: 2009-05-28 13:49:32
Subject: Re: PostgreSQL Developer meeting minutes up

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group