From: bboett@erm1.u-strasbg.fr
To: pgsql-sql@postgresql.org
Subject: possible to lock a single row in table?
Date: Wed, 20 Jun 2001 16:46:36 +0200
Message-ID: <20010620164636.J13678@erm1.u-strasbg.fr> (raw)
Hello!
i have a lots of threads that work on a table, making insertions,
updates removes.....
now i certain cases its important to keep data integrity, so i looked
into locks....
all i found was a lock function that locks the entire table....
now even in shared mode, if i understand it well this means that as long
as the locking procedure isn't finished, no other thread can update or
delete data, right? Thats really harsh, since there are really an awful
lot of threads....
isn't it possible to lock only a specific row?
and what happens to other insert queries whilst the lock is operational?
Are they postponed and the valling thread waits, or does the call return
with an error?
--
ciao bboett
==============================================================
bboett@earthling.net
http://inforezo.u-strasbg.fr/~bboetthttp://erm1.u-strasbg.fr/~bboett
===============================================================
the total amount of intelligence on earth is constant.
human population is growing....
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: bboett@erm1.u-strasbg.fr
Subject: Re: possible to lock a single row in table?
In-Reply-To: <20010620164636.J13678@erm1.u-strasbg.fr>
* 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