Re: file-locking and postmaster.pid

Поиск
Список
Период
Сортировка
От Andreas Joseph Krogh
Тема Re: file-locking and postmaster.pid
Дата
Msg-id 200605242132.32006.andreak@officenet.no
обсуждение исходный текст
Ответ на file-locking and postmaster.pid  (Andreas Joseph Krogh <andreak@officenet.no>)
Ответы Re: file-locking and postmaster.pid
Список pgsql-hackers
On Wednesday 24 May 2006 21:03, korry wrote:
> > I'm sure there's a good reason for having it the way it is, having so
> > many smart knowledgeable people working on this project. Could someone
> > please explain the rationale of the current solution to me?
>
> We've ignored Andreas' original question.  Why not use a lock to
> indicate that the postmaster is still running?  At first blush, that
> seems more reliable than checking for a (possibly recycled) process ID.

As Tom replied: Portability.

--
Andreas Joseph Krogh <andreak@officenet.no>
Senior Software Developer / Manager
gpg public_key: http://dev.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS            | The most difficult thing in the world is to |
Hoffsveien 17           | know how to do a thing and to watch         |
PO. Box 425 Skøyen      | somebody else doing it wrong, without       |
0213 Oslo               | comment.                                    |
NORWAY                  |                                             |
Phone : +47 22 13 01 00 |                                             |
Direct: +47 22 13 10 03 |                                             |
Mobile: +47 909  56 963 |                                             |
------------------------+---------------------------------------------+


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Further reduction of bufmgr lock contention
Следующее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: file-locking and postmaster.pid