Re: advisory locks and permissions

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: advisory locks and permissions
Дата
Msg-id 200609211642.59683.dim@dalibo.com
обсуждение исходный текст
Ответ на advisory locks and permissions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Le jeudi 21 septembre 2006 01:52, Tom Lane a écrit :
> Or we could try to do something about limiting the number of such locks
> that can be granted, but that seems nontrivial to tackle at such a late
> stage of the devel cycle.
>
> Thoughts?

What about reserving some amount of shared_buffers out of those locks?
(For example ext2 preserve some disk space for root in case of emergency)

Don't know anything about how easily (error prone) this can be done, though.

Le jeudi 21 septembre 2006 16:22, Tom Lane a écrit :
> Another reason for restricting access to the advisory-lock functions
> is that an uninformed application might take the wrong locks, and
> bollix up your intended usage accidentally.

This sounds like one more attempt to protect against idiots, which universe
tend to produce on a pretty quick rate :)

My 2¢,
--
Dimitri Fontaine
Directeur Technique
Tel: 06 74 15 56 53

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: 'configure --disable-shared' and 'make check'
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Phantom Command ID