From: Michael Fuhr <mike@fuhr.org>
To: Ottó Havasvölgyi <havasvolgyi.otto@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: For update
Date: Mon, 16 Jan 2006 10:29:39 -0700
Message-ID: <20060116172938.GA9958@winnie.fuhr.org> (raw)
In-Reply-To: <20060116170515.GK22228@surnet.cl>
References: <34608c0c0601160859g4e077ad9g@mail.gmail.com>
<20060116170515.GK22228@surnet.cl>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@fuhr.org, havasvolgyi.otto@gmail.com
Subject: Re: For update
In-Reply-To: <20060116172938.GA9958@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox