From: Guillaume Cottenceau <gc@mnc.ch>
To: Krishna Saranathan <krishnapsg_1984@yahoo.co.in>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JAVA-POSTGRESQL connection broken
Date: Tue, 07 Apr 2009 17:37:30 +0200
Message-ID: <87prfojwzp.fsf@meuh.mnc.lan> (raw)
In-Reply-To: <22922667.post@talk.nabble.com>
References: <22922667.post@talk.nabble.com>
Krishna Saranathan <krishnapsg_1984 'at' yahoo.co.in> writes:
> Hi ,
>
> We have a issue here wherein, we are trying to connect postgresql db (7.2)
> and perform batch insert and delete, for configurable number of db records.
> We are using addBatch of statement class of JDBC, to perform this.
>
> Number of records to be deleted is configurable and typically 5000.
>
> We are often getting this error and the java program is exiting before
> receiving the result from postgres.
> In postgres log, i could see the query sent by java program is getting
> executed. Can someone help in pointing out the issue here?
>
> PROGRAM ERROR:
> LOG: unexpected EOF on client connection
>
> LOG: unexpected EOF on client connection
>
> LOG: could not send data to client: Broken pipe
"unexpected EOF on client connection" is typical of a java
program exiting without closing the connection. are you sure
you're not having java exceptions terminating your program? you
might experience an OOM in java because of your usage pattern,
for example.
anyway, 7.2 is veeery outdated so you might be also hitting some
bug somewhere already fixed long ago. you should try using a more
recent version of pg at least in a test environment and check if
the problem also arises there.
--
Guillaume Cottenceau
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: gc@mnc.ch, krishnapsg_1984@yahoo.co.in
Subject: Re: JAVA-POSTGRESQL connection broken
In-Reply-To: <87prfojwzp.fsf@meuh.mnc.lan>
References: <22922667.post@talk.nabble.com> <87prfojwzp.fsf@meuh.mnc.lan>
* 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