Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id EA3249FB1BB for ; Sun, 15 Jul 2007 18:51:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 92694-04 for ; Sun, 15 Jul 2007 18:51:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from www.goldencode.com (smtp.goldencode.com [72.17.138.114]) by postgresql.org (Postfix) with ESMTP id CBF459FA4C3 for ; Sun, 15 Jul 2007 18:51:23 -0300 (ADT) Received: from emlsrv01.internal.goldencode.com (unknown [192.168.1.51]) by www.goldencode.com (Postfix) with SMTP id 20C8D1C140 for ; Sun, 15 Jul 2007 16:53:29 -0400 (EDT) Received: from [192.168.1.103] (ecf.internal.goldencode.com [192.168.1.103]) by emlsrv01.internal.goldencode.com (Hethmon Brothers Smtpd) id 20070715174346-21661-7 ; Sun, 15 Jul 2007 17:43:46 -0500 Message-ID: <469A968C.9000203@goldencode.com> Date: Sun, 15 Jul 2007 17:50:04 -0400 From: Eric Faulhaber Reply-To: ecf@goldencode.com Organization: Golden Code Development User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Jan de Visser CC: pgsql-jdbc@postgresql.org, Oliver Jowett Subject: Re: Implicit autocommit? References: <4699BA51.6050001@goldencode.com> <4699FFF6.4050506@opencloud.com> <469A5AA6.3090005@goldencode.com> <200707151614.35715.jdevisser@digitalfairway.com> In-Reply-To: <200707151614.35715.jdevisser@digitalfairway.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200707/61 X-Sequence-Number: 17235 Jan de Visser wrote: > On Sunday 15 July 2007 13:34:30 Eric Faulhaber wrote: > >> Unless I misunderstand your answer, this suggests that vacuum cannot be >> run via JDBC, since it cannot be run within a transaction block. >> > > Methinks you did misunderstand Oliver; if you use setAutoCommit(true) there > will be no transaction block at all (the name is a bit confusing: autocommit > true means there are effectively no commit statements send. At least by the > pgsql driver). Don't know what that means for your temptables though; if they > are transaction scoped you're probably SOL, but from your example it seems > you're using session scoped temp tables, so that should work. > > Indeed I did misunderstand. Setting autocommit to true allows the vacuum to proceed. Thanks to both of you for your help! Regards, Eric Faulhaber