Re: Feature: POSIX Shared memory support

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Feature: POSIX Shared memory support
Дата
Msg-id 20070207150259.GA6152@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Feature: POSIX Shared memory support  ("Andrew Dunstan" <andrew@dunslane.net>)
Ответы Re: Feature: POSIX Shared memory support  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan wrote:

> Maybe we should look some more at that. Use of file locking was one
> thought I had today after I saw Tom's earlier comments.
>
> Perl provides a moderately portable flock(), which we use in fact in
> buildfarm to stop it from running more than one at a time on a given repo
> copy.

But does it work over NFS?  On my system, the flock manpage claims it
doesn't, lockf doesn't say and fcntl also doesn't say, but the flock
manpage says fcntl does.  A lot of people runs servers on NFS, even
though we recommend they don't.  And there are those strange hybrids
like SANs, NASes or what have you.

One serious problem is that if the lock doesn't work for some reason
like NFSness, it will fail silently, which is not acceptable.

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

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Feature: POSIX Shared memory support
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Feature: POSIX Shared memory support