Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 63AAA9FB30E for ; Mon, 23 Jul 2007 12:46:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 65167-09 for ; Mon, 23 Jul 2007 12:46:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by postgresql.org (Postfix) with ESMTP id 5C6059FB214 for ; Mon, 23 Jul 2007 12:46:39 -0300 (ADT) Received: from web.de by fmmailgate04.web.de (Postfix) with SMTP id DFBF62A9E684 for ; Mon, 23 Jul 2007 17:42:36 +0200 (CEST) Received: from [213.187.89.34] by freemailng2702.web.de with HTTP; Mon, 23 Jul 2007 17:42:36 +0200 Date: Mon, 23 Jul 2007 17:42:36 +0200 Message-Id: <153540364@web.de> MIME-Version: 1.0 From: Stefan Zweig To: pgsql-jdbc@postgresql.org Subject: =?iso-8859-15?Q?Problem_with_ResultSet_retrieved_with_SELECT_*_FROM_pg?= =?iso-8859-15?Q?=5Findexes_WHERE_tablename?= Precedence: fm-user Organization: http://freemail.web.de/ X-Provags-Id: V01U2FsdGVkX18ZP3DjkqkD7Yygszxjl0tehHs8SVuYwTrxWAW48kvDwa/fe ZD29DA5zSCtIyL3orCO+xnNik+vmmla/yHAPBAdafAf+yIgBFzXtWB5D5LCN A== Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.045 tagged_above=0 required=5 tests=AWL=0.044, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200707/103 X-Sequence-Number: 17277 hi list, i hope anybody can help me with this thing: i tried to select all indexes of a table with the following statement via jdbc: Statement pgstatement; Connection pgconnection; ... pgstatement = pgconnection.createStatement(); query= "SELECT * FROM pg_indexes WHERE tablename ='g_g114'"; pgresultSet=pgstatement.executeQuery(query); after that i want to step through the ResultSet with while(pgresultSet.next()) {...} but i get an exception from pgresultSet.next() which says: org.postgresql.util.PSQLException: DataSource has been closed what can be the mistake? i appreciate any help, thanks, stefan _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066