From: Oliver Jowett <oliver@opencloud.com>
To: Markus Popp <m.popp@db4free.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Fw: Re: GROUP_CONCAT in PostgreSQL
Date: Fri, 06 Jan 2006 18:19:59 +0000
Message-ID: <43BEB4CF.1070907@opencloud.com> (raw)
In-Reply-To: <002c01c612bc$23fafa00$0101020a@eagle>
References: <00c201c61241$f05f4ef0$0101020a@eagle>
<43BDBF56.70201@opencloud.com>
<002c01c612bc$23fafa00$0101020a@eagle>
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
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: oliver@opencloud.com, m.popp@db4free.net
Subject: Re: Fw: Re: GROUP_CONCAT in PostgreSQL
In-Reply-To: <43BEB4CF.1070907@opencloud.com>
References: <00c201c61241$f05f4ef0$0101020a@eagle> <43BDBF56.70201@opencloud.com> <002c01c612bc$23fafa00$0101020a@eagle> <43BEB4CF.1070907@opencloud.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