Re: file-locking and postmaster.pid - Mailing list pgsql-hackers

From Andreas Joseph Krogh
Subject Re: file-locking and postmaster.pid
Date
Msg-id 200605242132.32006.andreak@officenet.no
Whole thread Raw
In response to file-locking and postmaster.pid  (Andreas Joseph Krogh <andreak@officenet.no>)
Responses Re: file-locking and postmaster.pid
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Further reduction of bufmgr lock contention
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: file-locking and postmaster.pid