Re: table locking

Поиск
Список
Период
Сортировка
От Shane Wright
Тема Re: table locking
Дата
Msg-id 200202181546.g1IFk4l28406@fullerruss.dsvr.co.uk
обсуждение исходный текст
Ответ на Re: table locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi Tom,

Thanks for the input, but I specifically can't use SELECT.. FOR UPDATE as the 
SELECT won't match any rows (it isnt supposed to, there's an explanation as 
to in a post I've just sent).  

I had thought about ACCESS EXCLUSIVE MODE; but it looks like it'll block all 
other readers as well, which isn't necessary.

Thanks

--
Shane

On Monday 18 Feb 2002 3:42 pm, Tom Lane wrote:
> I think you want just LOCK TABLE tab IN SHARE ROW EXCLUSIVE MODE
> or LOCK TABLE tab IN EXCLUSIVE MODE.  The latter would lock out
> SELECT FOR UPDATE, the former wouldn't.
>
>             regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: table locking
Следующее
От: Shane Wright
Дата:
Сообщение: Re: table locking