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

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.

> It is 
> my understanding that autovacuum skips temp tables:
>
> http://archives.postgresql.org/pgsql-general/2007-06/msg01645.php
>
> This is consistent with my experience.  So, how can I vacuum a
> long-lived temp table created with a JDBC connection?
>
> Thanks,
> Eric Faulhaber

jan

-- 
--------------------------------------------------------------
Jan de Visser                     jdevisser@digitalfairway.com

                Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------



view thread (5+ messages)  latest in thread

Message-ID: <200707151614.35715.jdevisser@digitalfairway.com>
Permalink:  ../200707151614.35715.jdevisser@digitalfairway.com/
Also on:    postgresql.org/message-id/200707151614.35715.jdevisser@digitalfairway.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: jdevisser@digitalfairway.com, ecf@goldencode.com, oliver@opencloud.com
  Subject: Re: Implicit autocommit?
  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>

* 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