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

From Alvaro Herrera
Subject Re: file-locking and postmaster.pid
Date
Msg-id 20060524213306.GB7412@surnet.cl
Whole thread Raw
In response to Re: file-locking and postmaster.pid  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan wrote:
> 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.

I removed the part of the manual I had written which said that it will
raise an error if the platform it's running doesn't have any locking
primitive.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: korry
Date:
Subject: Re: file-locking and postmaster.pid
Next
From: Tom Lane
Date:
Subject: Re: file-locking and postmaster.pid