Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6635A9FB1BC for ; Sun, 15 Jul 2007 17:39:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 93365-03 for ; Sun, 15 Jul 2007 17:39:37 -0300 (ADT) X-Greylist: delayed 00:24:55.776062 by SQLgrey-1.7.5 Received: from mail.digitalfairway.ca (ns.digitalfairway.ca [207.164.133.170]) by postgresql.org (Postfix) with ESMTP id 336C59FB1BB for ; Sun, 15 Jul 2007 17:39:48 -0300 (ADT) Received: from toronto.toronto.digitalfairway.ca (unknown [192.168.100.10]) by mail.digitalfairway.ca (Postfix) with ESMTP id B0997A4584; Sun, 15 Jul 2007 16:09:07 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by toronto.toronto.digitalfairway.ca (Postfix) with ESMTP id 7A7EA4013ED; Sun, 15 Jul 2007 16:15:07 -0400 (EDT) Received: from toronto.toronto.digitalfairway.ca ([127.0.0.1]) by localhost (toronto.toronto.digitalfairway.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26468-01; Sun, 15 Jul 2007 16:15:07 -0400 (EDT) Received: from waterloo.local (CPE00119557f5ec-CM000f9faa78f6.cpe.net.cable.rogers.com [74.100.133.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by toronto.toronto.digitalfairway.ca (Postfix) with ESMTP id 3FBF04013EC; Sun, 15 Jul 2007 16:15:07 -0400 (EDT) From: Jan de Visser To: pgsql-jdbc@postgresql.org, ecf@goldencode.com Subject: Re: Implicit autocommit? Date: Sun, 15 Jul 2007 16:14:35 -0400 User-Agent: KMail/1.9.7 Cc: Oliver Jowett References: <4699BA51.6050001@goldencode.com> <4699FFF6.4050506@opencloud.com> <469A5AA6.3090005@goldencode.com> In-Reply-To: <469A5AA6.3090005@goldencode.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200707151614.35715.jdevisser@digitalfairway.com> X-Virus-Scanned: amavisd-new at digitalfairway.ca X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/60 X-Sequence-Number: 17234 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. =A0 Methinks you did misunderstand Oliver; if you use setAutoCommit(true) there= =20 will be no transaction block at all (the name is a bit confusing: autocommi= t=20 true means there are effectively no commit statements send. At least by the= =20 pgsql driver). Don't know what that means for your temptables though; if th= ey=20 are transaction scoped you're probably SOL, but from your example it seems= =20 you're using session scoped temp tables, so that should work. > It is=20 > my understanding that autovacuum skips temp tables: > > http://archives.postgresql.org/pgsql-general/2007-06/msg01645.php > > This is consistent with my experience. =A0So, how can I vacuum a > long-lived temp table created with a JDBC connection? > > Thanks, > Eric Faulhaber jan =2D-=20 =2D------------------------------------------------------------- Jan de Visser =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 jdevisser@digitalfair= way.com =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Baruk Khazad! Khazad ai-menu! =2D-------------------------------------------------------------