pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Stange <stange@rentec.com>
To: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: executeBatch() issue with new driver?
Date: Tue, 02 Nov 2004 16:22:25 -0500
Message-ID: <4187FA91.8040107@rentec.com> (raw)
In-Reply-To: <4187F8E0.6030909@opencloud.com>
References: <4187B025.2090201@rentec.com>
	<Pine.BSO.4.56.0411021411070.17267@leary.csoft.net>
	<4187DF2E.3030302@rentec.com>
	<Pine.BSO.4.56.0411021427540.3642@leary.csoft.net>
	<4187EBA4.2040100@rentec.com>
	<4187F43B.2070505@opencloud.com>
	<4187F59E.4060902@rentec.com>
	<4187F8E0.6030909@opencloud.com>

Oliver Jowett wrote:

> Alan Stange wrote:
>
>> And the only reason we stuck with batch's in this case was because we 
>> had a temp table and we needed to stay in the scope of that table 
>> name, hence the single statement with multiple batches of  multiple 
>> statements.
>
>
> I'm not sure what you mean here. Are you trying to use CREATE 
> TEMPORARY TABLE .. ON COMMIT DROP with autocommit on?

We were "conserving bandwidth" using a temp table, inserting a condensed 
form of the data, along the lines of the following:

CREATE TEMP TABLE T(...);
INSERT INTO T ...
lots of these...
INSERT INTO T... 
INSERT INTO BIGTABLE(LONGCOLNAME1,LONGCOLNAME2) SELECT A,B,"common 
value" from T;
DROP TABLE T;

>
>> The new pgjdbc driver does support multiple result sets?
>
> Yes.

Thanks!

-- Alan



view thread (13+ messages)

Message-ID: <4187FA91.8040107@rentec.com>
Permalink:  ../4187FA91.8040107@rentec.com/
Also on:    postgresql.org/message-id/4187FA91.8040107@rentec.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: stange@rentec.com, oliver@opencloud.com
  Subject: Re: executeBatch() issue with new driver?
  In-Reply-To: <4187FA91.8040107@rentec.com>
  References: <4187B025.2090201@rentec.com> <Pine.BSO.4.56.0411021411070.17267@leary.csoft.net> <4187DF2E.3030302@rentec.com> <Pine.BSO.4.56.0411021427540.3642@leary.csoft.net> <4187EBA4.2040100@rentec.com> <4187F43B.2070505@opencloud.com> <4187F59E.4060902@rentec.com> <4187F8E0.6030909@opencloud.com> <4187FA91.8040107@rentec.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