Re: file-locking and postmaster.pid

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>, korry <korry(at)appx(dot)com>, Andreas Joseph Krogh <andreak(at)officenet(dot)no>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: file-locking and postmaster.pid
Date: 2006-05-24 21:06:49
Message-ID: 4474CAE9.3030604@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera wrote:
> Alvaro Herrera wrote:
>
>
>> Note that it may fail! This seems to indicate that some platforms do
>> not provide either locking mechanism.
>>
>
> (Which means the whole discussion is a waste of time)
>
>

Umm, no, I don't think so. It will block instead of failing unless you
request a non blocking call. Failure means someone else holds the lock.

But what Tom says about NFS is probably true, and a good enough reason
not to trust locking in general for this purpose, I think

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Massimiliano Poletto 2006-05-24 21:12:16 Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Previous Message John Jawed 2006-05-24 20:50:41 Re: Improving ALTER TYPE support