Re: Archiver behavior at shutdown

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: Archiver behavior at shutdown
Дата
Msg-id Pine.GSO.4.64.0712282014360.10077@westnet.com
обсуждение исходный текст
Ответ на Re: Archiver behavior at shutdown  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Archiver behavior at shutdown  (Simon Riggs <simon@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Archiver behavior at shutdown
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: minimal update