From: bitrunner <bitrunner@katamail.com>
To: pgsql-jdbc@postgresql.org
Subject: R: Help lock record
Date: Wed, 24 May 2006 07:12:21 +0200
Message-ID: <4473EB35.3080706@katamail.com> (raw)
On 23-May-06, at 1:37 PM, bitrunner wrote:
> For lock the record I use:
> select * from orders where id = 17 for update
>
> in this way lock the record with id = 17.
> If an other user demands the same record as I can understand that it
is lock?
> yes as long as autocommit is false this is true. In other words as
> long as you do this inside a transaction/
sorry but I dont have to understand.
How I can understand that there is an other user who lock the record?
Thanks.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: bitrunner@katamail.com
Subject: Re: R: Help lock record
In-Reply-To: <4473EB35.3080706@katamail.com>
References: <4473EB35.3080706@katamail.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