Re: Transaction-scope advisory locks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transaction-scope advisory locks
Дата
Msg-id 24631.1292338308@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Transaction-scope advisory locks  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: Transaction-scope advisory locks  (Andrew Dunstan <andrew@dunslane.net>)
Re: Transaction-scope advisory locks  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> Not that I'm necessarily against the proposal, but what does this do
> that can't already be done by locking a table or a table's row?

I agree with Andres' point about this: sometimes it'd be more convenient
for an advisory lock to be released automatically at transaction end.
If you have a mix of clients that want that behavior with others that
want a persistent hold on the same locks, you can't do it with regular
locks.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: SQL/MED - core functionality
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Transaction-scope advisory locks