X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E2E599DCA62 for ; Fri, 6 Jan 2006 14:19:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72600-03 for ; Fri, 6 Jan 2006 14:19:55 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 5D3779DC87C for ; Fri, 6 Jan 2006 14:19:51 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EuwBr-0004Ev-Db; Sat, 07 Jan 2006 07:19:51 +1300 Message-ID: <43BEB4CF.1070907@opencloud.com> Date: Fri, 06 Jan 2006 18:19:59 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Popp CC: pgsql-jdbc@postgresql.org Subject: Re: Fw: Re: GROUP_CONCAT in PostgreSQL References: <00c201c61241$f05f4ef0$0101020a@eagle> <43BDBF56.70201@opencloud.com> <002c01c612bc$23fafa00$0101020a@eagle> In-Reply-To: <002c01c612bc$23fafa00$0101020a@eagle> 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, score=0.107 required=5 tests=[AWL=0.107] X-Spam-Score: 0.107 X-Spam-Level: X-Archive-Number: 200601/26 X-Sequence-Number: 14477 Markus Popp wrote: > FE=> Terminate > FE=> Parse(stmt=null,query="SELECT a.constraint_name, a.table_name, > a.constraint_type, array_to_string( array( SELECT column_name::varchar FROM > information_schema.key_column_usage WHERE constraint_name = > a.constraint_name ORDER BY ordinal_position ), '_' ) as column_list, > c.table_name, c.column_name FROM information_schema.table_constraints a > INNER JOIN information_schema.key_column_usage b ON a.constraint_name = > b.constraint_name LEFT JOIN information_schema.constraint_column_usage c ON > a.constraint_name = c.constraint_name AND a.constraint_type = 'FOREIGN KEY' > GROUP BY a.constraint_name, a.table_name, a.constraint_type, c.table_name, > c.column_name ORDER BY a.table_name, a.constraint_name",oids={}) Ok, at a glance it looks like something is closing the connection before you manage to actually execute the query, and the I/O error occurs because the server is shutting down the connection in response to that Terminate message when the real query arrives. Can you check that your code does not call Connection.close() before the query is run? I notice from your stacktrace that you are running queries from an AWT event-dispatch thread, is it possible that there is another thread that is using the Connection concurrently? If that's not the problem, can you send me a selfcontained testcase that shows the problem? If you *are* calling Connection.close(), I'd be interested in exactly what the timing is, since in theory the driver should realise the connection is dead and tell you so rather than giving an obscure I/O error. -O