X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1C53211F675C for ; Fri, 31 Mar 2006 06:08:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57952-03 for ; Fri, 31 Mar 2006 06:08:53 -0400 (AST) X-Greylist: delayed 00:06:38.719998 by SQLgrey- Received: from pmailunix.pontoserver.com (pmailunix.pontoserver.com [69.93.207.50]) by postgresql.org (Postfix) with SMTP id 5B84011F6AD2 for ; Fri, 31 Mar 2006 06:08:52 -0400 (AST) Received: (qmail 89817 invoked from network); 31 Mar 2006 10:22:00 -0000 Received: from unknown (HELO ?192.168.0.200?) (83.240.165.181) by pmailunix.pontoserver.com with SMTP; 31 Mar 2006 10:22:00 -0000 Message-ID: <442CFE4E.9000309@mobicomp.com> Date: Fri, 31 Mar 2006 11:02:54 +0100 From: =?ISO-8859-1?Q?Jo=E3o_Paulo_Ribeiro?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Behaviour of setAutoCommit may not be completely correct. X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/148 X-Sequence-Number: 14929 Hello. I found a situation that is causing db locks using enhydra dods with postgresql due to somethinf that look like a bad behaviour of postgresql. Since version 6.0, i think, dods do all the db queries with setAutoCommit(false). The expected behaviour of setAutocommit(...) is that the current transaction is commited, allowing the db backend to free resources previously allocated, and a new one is created with the autocommit set to the value passed.