pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Altaf Malik <mmalik_altaf@yahoo.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC causing the connection to close after executing a COPY command
Date: Thu, 13 Dec 2007 07:54:52 -0800 (PST)
Message-ID: <689590.40570.qm@web39115.mail.mud.yahoo.com> (raw)
In-Reply-To: <33B38B63-7DB9-405B-A808-0152A5DB6295@fastcrypt.com>

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.

view thread (9+ messages)  latest in thread

Message-ID: <689590.40570.qm@web39115.mail.mud.yahoo.com>
Permalink:  ../689590.40570.qm@web39115.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/689590.40570.qm@web39115.mail.mud.yahoo.com

 · 

reply

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: mmalik_altaf@yahoo.com, pg@fastcrypt.com
  Subject: Re: JDBC causing the connection to close after executing a COPY command
  In-Reply-To: <689590.40570.qm@web39115.mail.mud.yahoo.com>
  References: <33B38B63-7DB9-405B-A808-0152A5DB6295@fastcrypt.com> <689590.40570.qm@web39115.mail.mud.yahoo.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