Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 248122E2F39 for ; Thu, 13 Dec 2007 11:55:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 80914-05 for ; Thu, 13 Dec 2007 11:54:48 -0400 (AST) Received: from web39115.mail.mud.yahoo.com (web39115.mail.mud.yahoo.com [209.191.87.234]) by postgresql.org (Postfix) with SMTP id 8EEB32E2D8D for ; Thu, 13 Dec 2007 11:54:54 -0400 (AST) Received: (qmail 41621 invoked by uid 60001); 13 Dec 2007 15:54:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=0E7Y5CuUxidRl/udmLs8QB8LBQGhfTu7s6gvtGtCcvPMeH8NdcLG3pexfpuw/ZV1uMjhUE2MUcsGqFt6eP1NTNgYnbyaJoCmIP5BEXBhcpgnhilv6NTBPVdVwSNZBcSxPhaDe3YU/iCSF6jtzQKnvaDmcNNczyVq3crdMNwL60I=; X-YMail-OSG: RCzXquYVM1miaekD3rVmeccjVX8K4gaUwrcUQ5iDmJrUVKx65URkSmLEuNA4uIBl3cLpqmkmDcMuceSA6ZNaFfj4jGy1EzOuK5fFBwDUUAnTJ8E- Received: from [58.65.169.82] by web39115.mail.mud.yahoo.com via HTTP; Thu, 13 Dec 2007 07:54:52 PST Date: Thu, 13 Dec 2007 07:54:52 -0800 (PST) From: Altaf Malik Subject: Re: JDBC causing the connection to close after executing a COPY command To: Dave Cramer Cc: pgsql-jdbc@postgresql.org In-Reply-To: <33B38B63-7DB9-405B-A808-0152A5DB6295@fastcrypt.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1001678070-1197561292=:40570" Content-Transfer-Encoding: 8bit Message-ID: <689590.40570.qm@web39115.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/86 X-Sequence-Number: 17941 --0-1001678070-1197561292=:40570 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, At what point can you determine the connection is closed ? Can you do con.createStatement after the exception ? If you see, i have placed the the stmt.execute("COPY abc TO STDOUT WITH DELIMITER '|'"); in a try-catch block, and after the try-catch block, i have executed again stmt.execute("Select * from abc") which throws an IO Exception. Also if i enable logging in JDBC, and only execute the COPY statement, log shows that FrontEnd sent a Terminate message. Thanks, Altaf Malik EnterpriseDB http://www.enterprisedb.com/ --------------------------------- Never miss a thing. Make Yahoo your homepage. --0-1001678070-1197561292=:40570 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi,
At what point can you determine the connection is closed ? Can you do con.createStatement after the exception ?
If you see, i have placed the the
stmt.execute("COPY abc TO STDOUT WITH DELIMITER '|'");
in a try-catch block, and after the try-catch block, i have executed again
stmt.execute("Select * from abc")
which throws an IO Exception. Also if i enable logging in JDBC, and only execute the COPY statement, log shows that FrontEnd sent a Terminate message.


Thanks,
Altaf Malik
EnterpriseDB
http://www.enterprisedb.com/


Never miss a thing. Make Yahoo your homepage. --0-1001678070-1197561292=:40570--