Re: For update

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: For update
Дата
Msg-id 20060116172938.GA9958@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: For update  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-sql
On Mon, Jan 16, 2006 at 02:05:15PM -0300, Alvaro Herrera wrote:
> Ottó Havasvölgyi wrote:
> > What does this do exactly:
> > 
> > select * from <ViewName> where <condition>  for update;
> > 
> > Will be locked all the tuples in all tables it retrieves?
> 
> Yes.
> 
> > In 8.0.5 this did not work for me.
> 
> How did it not work?  Was any error message emitted?  What is the view
> definition?

I wonder if "not work" means "didn't lock the rows" and the cause
is simply not having a surrounding transaction.

-- 
Michael Fuhr


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: For update
Следующее
От: chester c young
Дата:
Сообщение: best way for constants in the database