Re: For update - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: For update
Date
Msg-id 20060116170515.GK22228@surnet.cl
Whole thread Raw
In response to For update  (Ottó Havasvölgyi <havasvolgyi.otto@gmail.com>)
Responses Re: For update  (Michael Fuhr <mike@fuhr.org>)
Re: For update  (Ottó Havasvölgyi <havasvolgyi.otto@gmail.com>)
List 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 by date:

Previous
From: Andreas Seltenreich
Date:
Subject: Re: psql client: technique for applying default values to :variables?
Next
From: Michael Fuhr
Date:
Subject: Re: For update