X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2DB4A9FA2E6 for ; Wed, 24 May 2006 03:12:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23224-04 for ; Wed, 24 May 2006 03:12:48 -0300 (ADT) X-Greylist: delayed 01:00:00.67519 by SQLgrey- Received: from swip.net (mailfe09.tele2.it [212.247.155.13]) by postgresql.org (Postfix) with ESMTP id 0806F9FA16E for ; Wed, 24 May 2006 03:12:47 -0300 (ADT) X-T2-Posting-ID: Vz/B64CJXR0zH54EPH/4aA== X-Cloudmark-Score: 0.000000 [] Received: from [83.184.139.128] (HELO [192.168.1.33]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 32812121 for pgsql-jdbc@postgresql.org; Wed, 24 May 2006 07:12:44 +0200 Message-ID: <4473EB35.3080706@katamail.com> Date: Wed, 24 May 2006 07:12:21 +0200 From: bitrunner User-Agent: Mozilla Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: R: Help lock record Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/119 X-Sequence-Number: 15247 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.