R: Help lock record

From: bitrunner <bitrunner(at)katamail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: R: Help lock record
Date: 2006-05-24 05:12:21
Message-ID: 4473EB35.3080706@katamail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


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.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2006-05-24 11:31:35 Re: R: Help lock record
Previous Message Kris Jurka 2006-05-23 23:41:43 Re: New jdbc builds soon?