Re: On file locking

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: On file locking
Дата
Msg-id 200301311220.41676.shridhar_daithankar@persistent.co.in
обсуждение исходный текст
Ответ на Re: On file locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: On file locking  (Curt Sampson <cjs@cynic.net>)
Список pgsql-hackers
On Friday 31 Jan 2003 9:56 am, you wrote:
> Kevin Brown <kevin@sysexperts.com> writes:
> But this only wins if a child process inheriting an open file also
> inherits copies of any locks held by the parent.  If not, then the
> issue is moot.  Anybody have any idea if file locks work that way?
> Is it portable??

In my experience of HP-UX and linux, they do differ. How much, I don't
remember.

I have a stupid proposal. Keep file lock aside. I think shared memory can be
kept alive even after process dies. Why not write a shared memory segment id
to a file and let postmaster check that segment. That would be much easier.

Besides file locking is implemented using setgid  bit on most unices. And
everybody is free to do what he/she thinks right with it.

May be stupid but just a thought..
Shridhar



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: postgres installation - best configuration?
Следующее
От: Curt Sampson
Дата:
Сообщение: Re: postgres installation - best configuration?