From: Alvaro Herrera <alvherre@commandprompt.com>
To: Martin Marques <martin@bugs.unl.edu.ar>
Cc: pgsql-sql@postgresql.org
Subject: Re: Rows with exclusive lock
Date: Sat, 22 Jul 2006 10:42:18 -0400
Message-ID: <20060722144218.GH5125@surnet.cl> (raw)
In-Reply-To: <Pine.LNX.4.64.0607221135470.17932@bugs.unl.edu.ar>
References: <Pine.LNX.4.64.0607221135470.17932@bugs.unl.edu.ar>
Martin Marques escribió:
> Is it posible to get an exclusive (read/write) lock on certain rows? I
> don't want to block the whole table, only certain rows, but I want it to
> be a read/write lock.
That's what SELECT FOR UPDATE does.
> AFAIK SELECT FOR UPDATE doesn't help with this.
Why?
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
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: alvherre@commandprompt.com, martin@bugs.unl.edu.ar
Subject: Re: Rows with exclusive lock
In-Reply-To: <20060722144218.GH5125@surnet.cl>
* 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