Re: For update - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: For update
Date
Msg-id 20060116172938.GA9958@winnie.fuhr.org
Whole thread Raw
In response to Re: For update  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: For update
Next
From: chester c young
Date:
Subject: best way for constants in the database