Re: Archiver behavior at shutdown - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Archiver behavior at shutdown
Date
Msg-id 1198931810.9558.92.camel@ebony.site
Whole thread Raw
In response to Re: Archiver behavior at shutdown  (Greg Smith <gsmith@gregsmith.com>)
Responses Re: Archiver behavior at shutdown  (Fujii Masao <fujii.masao@oss.ntt.co.jp>)
List pgsql-hackers
On Fri, 2007-12-28 at 20:20 -0500, Greg Smith wrote:
> On Sat, 29 Dec 2007, Simon Riggs wrote:
> 
> > System Shutdown
> > System shuts down, postmaster shuts down, archiver works furiously until
> > the end trying to archive things away. Archiver gets caught half way
> > through copy, so crashes, leaving archiver.pid. Subsequent startup sees
> > archiver.pid, postmaster reads file to get pid, then sends signal to
> > archiver to see if it is still alive, it isn't so remove archiver.pid
> > and allow next archiver to start.
> 
> Isn't it possible some other process may have started with that pid if the 
> database server was down for long enough?  In that case sending a signal 
> presuming it's the archive process that used to have that pid might be bad 
> form.

I think you've emphasised my point that me rushing this in the time I
have available is not going to improve matters for the group.

My original one line change described on bug 3843 seems like the best
solution for 8.3.

--  Simon Riggs 2ndQuadrant  http://www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Spoofing as the postmaster
Next
From: "D'Arcy J.M. Cain"
Date:
Subject: Re: Spoofing as the postmaster