Re: Row Lock

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Row Lock
Дата
Msg-id dcc563d10711221112m62d64ae9s3804c6da6c26d03b@mail.gmail.com
обсуждение исходный текст
Ответ на Row Lock  (PostgreSQL <malcus@terra.com.br>)
Список pgsql-admin
On Nov 22, 2007 12:31 PM, PostgreSQL <malcus@terra.com.br> wrote:
> I'm having a problem with some row locks where one user does the lock
> and another user try to do the same, but of course, the second one will
> be waiting the first user unlock it.
>
> I would like to know if there is a way to discover if that row is locked
> before I try to do the lock.
>
> I have been researching something like ROWID but I couldn't find
> anything useful.

I believe you want the NOWAIT option on your select.

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

Предыдущее
От: PostgreSQL
Дата:
Сообщение: Row Lock
Следующее
От: "LEROUX Ludovic"
Дата:
Сообщение: problem with drop database or dropdb.exe on windows with postgresql 8.1