Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 835FF6363A4 for ; Tue, 6 Apr 2010 14:03:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 74320-03 for ; Tue, 6 Apr 2010 17:02:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f185.google.com (mail-qy0-f185.google.com [209.85.221.185]) by mail.postgresql.org (Postfix) with ESMTP id 21392637BCB for ; Tue, 6 Apr 2010 12:01:14 -0300 (ADT) Received: by qyk15 with SMTP id 15so5225310qyk.10 for ; Tue, 06 Apr 2010 08:01:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.20.2 with HTTP; Tue, 6 Apr 2010 08:01:11 -0700 (PDT) In-Reply-To: <4BBAB406.4080303@postnewspapers.com.au> References: <4BBAB406.4080303@postnewspapers.com.au> Date: Tue, 6 Apr 2010 12:01:11 -0300 Received: by 10.224.55.66 with SMTP id t2mr2675195qag.94.1270566071890; Tue, 06 Apr 2010 08:01:11 -0700 (PDT) Message-ID: Subject: Re: An I/O error occured while sending to the backend. From: Breno BF To: Craig Ringer Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=000feaf20d0560f774048392b7e3 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.462 tagged_above=-10 required=5 tests=AWL=0.277, BAYES_20=-0.74, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/5 X-Sequence-Number: 20416 --000feaf20d0560f774048392b7e3 Content-Type: text/plain; charset=ISO-8859-1 Hi, Craig, since I changed it to info, I could not see nothing in postgres logs when the problem occurs. log_min_messages = info log_min_error_statement = info should I change it to debug? -B 2010/4/6 Craig Ringer > Breno BF wrote: > > > I am getting this error using glassfish and postgresql: " Caused by: > > org.postgresql.util.PSQLException: An I/O error occured while sending to > > the backend." > > Further in the exception log, you'll see: > > Caused by: java.net.SocketException: Socket closed > > In other words, the pgsql backend has "hung up" on the client. Most > likely the Pg backend terminated for some reason, which you should see > in the PostgreSQL logs. > > > log_min_messages = error > > log_min_error_statement = error > > Turn these down to at least 'info', restart PostgreSQL, and see if you > get anything informative in the logs. > > -- > Craig Ringer > -- - breno bf --000feaf20d0560f774048392b7e3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Craig, since I changed it to info, I could not see nothing in postgres=20 logs when the problem occurs.

log_min_messages =3D info=A0=A0=A0=A0=A0=A0=A0=A0
log_min_error_statement =3D info

should I change it to debug?

-B

2010/4/6 Craig Ringer <craig@postnewspapers.com.au>
Breno BF wrote:

> I am getting this error using glassfish and postgresql: " Caused = by:
> org.postgresql.util.PSQLException: An I/O error occured while sending = to
> the backend."

Further in the exception log, you'll see:

Caused by: java.net.SocketException: Socket closed

In other words, the pgsql backend has "hung up" on the client. = =A0Most
likely the Pg backend terminated for some reason, which you should see
in the PostgreSQL logs.

> log_min_messages =3D error
> log_min_error_statement =3D error

Turn these down to at least 'info', restart PostgreSQL, and s= ee if you
get anything informative in the logs.

--
Craig Ringer



--
- breno bf
--000feaf20d0560f774048392b7e3--