X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BCCC254C55 for ; Wed, 2 Mar 2005 22:37:53 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20453-08 for ; Wed, 2 Mar 2005 22:37:45 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by svr1.postgresql.org (Postfix) with ESMTP id 291B754C94 for ; Wed, 2 Mar 2005 22:37:44 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 68so371959wra for ; Wed, 02 Mar 2005 14:37:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=tsYTntCDss/iFVeUaUv+eejjH2t9Rwoy/E7dl843QX/c7udH4v7qBWxwWximzk+q/HkroFjv0KP1unYgaXwUf8FMWKlq4aLxEGGyZtIX/Fvh/GpeMz0w+2XnYxSBCePNywd5juOkmOPfFNK5A5p1ki2hRqfgcQv3GimepKHQg/4= Received: by 10.54.44.50 with SMTP id r50mr46194wrr; Wed, 02 Mar 2005 14:37:47 -0800 (PST) Received: by 10.54.39.57 with HTTP; Wed, 2 Mar 2005 14:37:47 -0800 (PST) Message-ID: <915cd3880503021437382b001e@mail.gmail.com> Date: Wed, 2 Mar 2005 23:37:47 +0100 From: Mican Bican Reply-To: Mican Bican To: pgsql-jdbc@postgresql.org Subject: lock problem when dont commit Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.54 tagged_above=0 required=5 tests=FROM_ENDS_IN_NUMS, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200503/22 X-Sequence-Number: 12415 Hello I use postgresql 8.0.1 under windows and jdbc3 with new java tiger... i work on a database with manuel commits and rollback.. my problem is when 2 people work in on the same time on the database: ---table liefAdress------------- pseudecode client1: ... conn.setAutoCommit(false) insert into liefAdress(adress,postcode) //id is autoincrement insert into liefAdress(adress2,postcode2) .... client2: insert into liefAdress(adress3,postcode3) --->here is the problem user1 dont commit his transactions.. the client software are locked.. you can do nothing in the programm..!! client1: conn.commit() //all the adresses are inserted client2: the adress is also inserted and the java clientsoftware is unlocked...! my question is why the java programm from client2 is locked??? can I say to the connection "when you must wait for the commit of the other users bring me a warning" or why the row from client2 are not inserted???? I dont lock everything.. must i change the transaction mode?? I use the default transaction mode.. thank you for your answers!!! Mican Bican