X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 445DB3A2B4A for ; Tue, 2 Nov 2004 21:23:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99860-03 for ; Tue, 2 Nov 2004 21:23:00 +0000 (GMT) Received: from ram.rentec.com (ram.rentec.com [192.5.35.66]) by svr1.postgresql.org (Postfix) with ESMTP id 239D43A402C for ; Tue, 2 Nov 2004 21:23:01 +0000 (GMT) Received: from [172.26.132.145] (hoopoe.rentec.com [172.26.132.145]) by ram.rentec.com (8.12.9/8.12.1) with ESMTP id iA2LMPHd007570; Tue, 2 Nov 2004 16:22:25 -0500 (EST) Message-ID: <4187FA91.8040107@rentec.com> Date: Tue, 02 Nov 2004 16:22:25 -0500 From: Alan Stange Reply-To: stange@rentec.com Organization: Renaissance Technologies Corp. User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: executeBatch() issue with new driver? References: <4187B025.2090201@rentec.com> <4187DF2E.3030302@rentec.com> <4187EBA4.2040100@rentec.com> <4187F43B.2070505@opencloud.com> <4187F59E.4060902@rentec.com> <4187F8E0.6030909@opencloud.com> In-Reply-To: <4187F8E0.6030909@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/41 X-Sequence-Number: 11463 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