Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: For update - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: For update
Date
Msg-id [email protected]
Whole thread Raw
In response to For update  (Ottó Havasvölgyi <[email protected]>)
Responses Re: For update
Re: For update
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