Re: For update

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: For update
Дата
Msg-id 20060116170515.GK22228@surnet.cl
обсуждение исходный текст
Ответ на For update  (Ottó Havasvölgyi <havasvolgyi.otto@gmail.com>)
Ответы Re: For update  (Michael Fuhr <mike@fuhr.org>)
Re: For update  (Ottó Havasvölgyi <havasvolgyi.otto@gmail.com>)
Список pgsql-sql
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?

-- 
Alvaro Herrera                           Developer, http://www.PostgreSQL.org
"MySQL is a toy compared to PostgreSQL."             (Randal L. Schwartz)
(http://archives.postgresql.org/pgsql-general/2005-07/msg00517.php)


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

Предыдущее
От: Andreas Seltenreich
Дата:
Сообщение: Re: psql client: technique for applying default values to :variables?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: For update