Re: Row Level Locking Problem

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: Row Level Locking Problem
Дата
Msg-id 39A14D55.EE60D5F@tm.ee
обсуждение исходный текст
Ответ на Row Level Locking Problem  ("Cray2" <cray2@mail.com>)
Список pgsql-hackers
Cray2 wrote:
> 
> Hi
> 
>     I have a big problem, when I try to lock a row locked previouly, It wait
> until commit / rollback operation.
> 
>         How could lock a row if It is not locked already?
> 
>         Could I now if a row is locked?
> 
>         Could I get some error message from postgres when I do 'select ....
> for update' to a locked row instead of wait for commit / rollback?

It is theoretically possible to write a function is_locked and then do

select .... for update where not is_locked(); 

and thereby lock only not-yet-locked functions.

------------------
Hannu


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Optimisation deficiency: currval('seq')-->seq scan, constant-->index scan
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Re: [GENERAL] +/- Inf for float8's