Re: advisory locks and permissions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: advisory locks and permissions
Дата
Msg-id 9698.1158952801@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: advisory locks and permissions  (AgentM <agentm@themactionfaction.com>)
Список pgsql-hackers
AgentM <agentm@themactionfaction.com> writes:
> If I want to use these locks, it seems I will have to hard-code some  
> offset into each app or hash the schema name and use that as an  
> offset :( In any case, I can't imagine the "wtf?" nightmares an  
> accidental collision would induce.

That depends entirely on how you are choosing to assign the lock key
numbers.  If you use something involving table OID, for example, there
is not a risk of collision from schema considerations.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: initdb ignores invalid locale names
Следующее
От: Tom Lane
Дата:
Сообщение: Re: advisory locks and permissions