Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 095FE9FB409 for ; Fri, 3 Aug 2007 20:33:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 76989-01 for ; Fri, 3 Aug 2007 20:33:43 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web32701.mail.mud.yahoo.com (web32701.mail.mud.yahoo.com [68.142.207.245]) by postgresql.org (Postfix) with SMTP id 997519FB3C9 for ; Fri, 3 Aug 2007 20:33:43 -0300 (ADT) Received: (qmail 78466 invoked by uid 60001); 3 Aug 2007 23:33:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=IRybRKB9x3+FAFNbtMDXHLbKog0u2wdlU23JVUw+lfQxT1ZhFONFqO39SpuMHxBERMnT8Bvp/aLhTPYH/YiqlKbNwR2EGzwXKeFH273XAEtORejZ5kJikrVp12pDpZq89QY2X6jIRPWrtJ4V/7Zhr6o98Csj/o5stsTcvLlDf10=; X-YMail-OSG: SVCzw_0VM1lYBzyArGMjGIstnFudX52wC2C3LVGjb5GphaTGZVYDxr5J53.sUShzC41DHt7kYXmpqjzppjElHCuKtXEWykRAw1aqgPhdtjZzdYK2i1uNU7Cr1haHyA-- Received: from [81.196.40.147] by web32701.mail.mud.yahoo.com via HTTP; Fri, 03 Aug 2007 16:33:42 PDT Date: Fri, 3 Aug 2007 16:33:42 -0700 (PDT) From: Albert Laszlo-Robert Reply-To: albertlaszlorobert@gmail.com Subject: PSQLException: Too many update results were returned. To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-192192963-1186184022=:78463" Content-Transfer-Encoding: 8bit Message-ID: <373352.78463.qm@web32701.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/21 X-Sequence-Number: 17334 --0-192192963-1186184022=:78463 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi i have a big problem. task: i need to execute multiple queries form some files. each file contains at about 50-100 query. the queries are from create table to create function ... almost everything. this batches should run on more than 600 databases. my problem is: i used the Statement.addBatch() to add the batch to the statement, and i execute batch with the Statement.executeBatch() method. the execution failes with the following error: org.postgresql.util.PSQLException: Too many update results were returned. at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleCommandStatus(AbstractJdbc2Statement.java:2468) at org.postgresql.core.v3.QueryExecutorImpl.interpretCommandStatus(QueryExecutorImpl.java:1559) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1274) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:347) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2559) at com.xxx.db.Database.executeUpdater(Database.java:xy) at com.taylor.zeus.patcher.db.DatabaseSelector.upgradeDatabases(DatabaseSelector.java:xy) at com.xxx.Patcher.start(Patcher.java:xy) at com.xxx.Application.start(Application.java:xy) at com.xxx.Application.main(Application.java:xy) i goggled all over the web to find out what is the source of this exception, but i don't find anything. can someone explain to me what should i do. or at least what is the problem with this. platform: linux with 2.6.20-16-generic kernel db: PostgreSQL 8.1.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) jdbc: 8.1 jdbc3 (i don't know what build number is) regards Laszlo-Robert, Albert --------------------------------- Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. --0-192192963-1186184022=:78463 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi

i have a big problem.

task: i need to execute multiple queries form some files. each file contains at about 50-100 query. the queries are from create table to create function ... almost everything. this batches should run on more than 600 databases.

my problem is:

i used the Statement.addBatch() to add the batch to the statement, and i execute batch with the Statement.executeBatch() method. the execution failes with the following error:


org.postgresql.util.PSQLException: Too many update results were returned.
    at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleCommandStatus(AbstractJdbc2Statement.java:2468)
    at org.postgresql.core.v3.QueryExecutorImpl.interpretCommandStatus(QueryExecutorImpl.java:1559)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1274)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:347)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2559)
    at com.xxx.db.Database.executeUpdater(Database.java:xy)
    at com.taylor.zeus.patcher.db.DatabaseSelector.upgradeDatabases(DatabaseSelector.java:xy)
    at com.xxx.Patcher.start(Patcher.java:xy)
    at com.xxx.Application.start(Application.java:xy)
    at com.xxx.Application.main(Application.java:xy)

i goggled  all over the web to find out what is the source of this exception, but i don't find anything.

can someone explain to me what should i do. or at least what is the problem with this.

platform: linux with 2.6.20-16-generic kernel
db: PostgreSQL 8.1.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
jdbc: 8.1 jdbc3  (i don't know what build number is)

regards

Laszlo-Robert, Albert


Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online. --0-192192963-1186184022=:78463--