Re: file-locking and postmaster.pid

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: file-locking and postmaster.pid
Дата
Msg-id 4474CAE9.3030604@dunslane.net
обсуждение исходный текст
Ответ на Re: file-locking and postmaster.pid  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: file-locking and postmaster.pid
Список 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


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

Предыдущее
От: "John Jawed"
Дата:
Сообщение: Re: Improving ALTER TYPE support
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Compression and on-disk sorting