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 82A8F9FA279 for ; Tue, 23 May 2006 15:40:29 -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 26239-09 for ; Tue, 23 May 2006 15:40:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 507739FA169 for ; Tue, 23 May 2006 15:40:21 -0300 (ADT) Received: (qmail 31871 invoked from network); 23 May 2006 18:40:20 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 23 May 2006 18:40:20 -0000 In-Reply-To: <4473483E.9090202@katamail.com> References: <4473483E.9090202@katamail.com> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3BAF0B35-0961-4581-AE90-CC14598D856A@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: help lock record Date: Tue, 23 May 2006 14:40:18 -0400 To: bitrunner X-Mailer: Apple Mail (2.750) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/112 X-Sequence-Number: 15240 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/ > > Thanks a lot. > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >