User Level Lock question

Поиск
Список
Период
Сортировка
От Lance Ellinghaus
Тема User Level Lock question
Дата
Msg-id 002d01c1cbec$b23c4820$3201040a@angel1
обсуждение исходный текст
Ответы Re: User Level Lock question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Is there an easy way to test the lock on a user level lock without actually
issuing the lock?

I would like to use them, but there is only a LockAcquire() and
LockRelease().. There is no LockTest()..

I guess I could do:

IF LockAcquire() == 0:   "locked" do whatever if it is locked...
ELSE:   LockRelease()   "unlocked" do whatever since it was not locked in the first place..

This just seems to be an inefficient way of doing this...

Thanks,
Lance Ellinghaus



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

Предыдущее
От: Michael Alan Dorman
Дата:
Сообщение: Re: insert statements
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: Survey results on Oracle/M$NT4 to PG72/RH72 migration