pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric Faulhaber <ecf@goldencode.com>
To: Jan de Visser <jdevisser@digitalfairway.com>
Cc: pgsql-jdbc@postgresql.org
Cc: Oliver Jowett <oliver@opencloud.com>
Subject: Re: Implicit autocommit?
Date: Sun, 15 Jul 2007 17:50:04 -0400
Message-ID: <469A968C.9000203@goldencode.com> (raw)
In-Reply-To: <200707151614.35715.jdevisser@digitalfairway.com>
References: <4699BA51.6050001@goldencode.com>
	<4699FFF6.4050506@opencloud.com>
	<469A5AA6.3090005@goldencode.com>
	<200707151614.35715.jdevisser@digitalfairway.com>

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



view thread (5+ messages)

Message-ID: <469A968C.9000203@goldencode.com>
Permalink:  ../469A968C.9000203@goldencode.com/
Also on:    postgresql.org/message-id/469A968C.9000203@goldencode.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: ecf@goldencode.com, jdevisser@digitalfairway.com, oliver@opencloud.com
  Subject: Re: Implicit autocommit?
  In-Reply-To: <469A968C.9000203@goldencode.com>
  References: <4699BA51.6050001@goldencode.com> <4699FFF6.4050506@opencloud.com> <469A5AA6.3090005@goldencode.com> <200707151614.35715.jdevisser@digitalfairway.com> <469A968C.9000203@goldencode.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox