Re: file-locking and postmaster.pid

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: file-locking and postmaster.pid
Дата
Msg-id 20060524200636.GG5028@surnet.cl
обсуждение исходный текст
Ответ на Re: file-locking and postmaster.pid  (korry <korry@appx.com>)
Ответы Re: file-locking and postmaster.pid
Re: file-locking and postmaster.pid
Re: file-locking and postmaster.pid
Список pgsql-hackers
korry wrote:

> The only platform (although certainly not a minor issue) that I can
> think of that would have a portability issue would be Win32. You can't
> even read a locked byte in Win32.  I usually solve that problem by
> locking a byte past the end of the file (which is portable).

Certainly on all platforms there must be *some* locking primitive.  We
just need to figure out the appropiate parameters to fcntl() or flock()
or lockf() on each.

The Win32 API for locking seems mighty strange to me.

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


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

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