From: Carlos Santos <carloscompels@yahoo.com.br>
To: pgsql-sql@postgresql.org
Subject: LOCK command inside a TRANSACTION
Date: Tue, 3 Apr 2007 05:48:41 -0700 (PDT)
Message-ID: <141386.39515.qm@web57105.mail.re3.yahoo.com> (raw)
Hi!
I need Postgresql somehow does this for me:
- if an user query a select on a table, the rows of the table in the result of this select can not be updated or deleted by another user until this one update, delete or discard the changes on those rows.
I've found something about the LOCK command inside a TRANSACTION but I didn't see how I could do that yet.
Does anybody have any ideas?
Carlos Henrique Iazzetti Santos
Compels Informática
Santa Rita do Sapucaí - MG
Brazil
www.compels.net
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
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: carloscompels@yahoo.com.br
Subject: Re: LOCK command inside a TRANSACTION
In-Reply-To: <141386.39515.qm@web57105.mail.re3.yahoo.com>
* 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