Re: file-locking and postmaster.pid

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: file-locking and postmaster.pid
Дата
Msg-id 20060524213306.GB7412@surnet.cl
обсуждение исходный текст
Ответ на Re: file-locking and postmaster.pid  (Andrew Dunstan <andrew@dunslane.net>)
Список 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 по дате отправления:

Предыдущее
От: korry
Дата:
Сообщение: Re: file-locking and postmaster.pid
Следующее
От: Tom Lane
Дата:
Сообщение: Re: file-locking and postmaster.pid