RE: User locks code

Поиск
Список
Период
Сортировка
От Lincoln Yeoh
Тема RE: User locks code
Дата
Msg-id 3.0.5.32.20010820235203.01706320@192.228.128.13
обсуждение исходный текст
Ответ на RE: User locks code  ("Vadim Mikheev" <vmikheev@sectorbase.com>)
Список pgsql-hackers
At 11:20 AM 8/19/01 -0700, Vadim Mikheev wrote:
>Well, ability to lock only unlocked rows in select for update is useful,
>of course. But uniq features of user'locks are:
>
>1. They don't interfere with normal locks hold by session/transaction.
>2. Share lock is available.
>3. User can lock *and unlock objects* inside transaction, which is not
>    (and will not be) available with locks held by transactions.

Would your suggested implementation allow locking on an arbitrary string?

If it does then one of the things I'd use it for is to insert unique data
without having to lock the table or rollback on failed insert (unique index
still kept as a guarantee).

Cheerio,
Link.






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

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: Re: CREATEDB Where ??
Следующее
От: Justin Clift
Дата:
Сообщение: Idea: Worthwhile creating a wrapper script to automate pg_hba.conf entries?