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

From Greg Smith
Subject Re: Archiver behavior at shutdown
Date
Msg-id Pine.GSO.4.64.0712282014360.10077@westnet.com
Whole thread Raw
In response to Re: Archiver behavior at shutdown  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: Archiver behavior at shutdown  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
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.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Archiver behavior at shutdown
Next
From: Andrew Dunstan
Date:
Subject: Re: minimal update