Re: idle in transaction...unexpected EOF on client connection - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: idle in transaction...unexpected EOF on client connection
Date
Msg-id dcc563d10711091441v24fba20fq275ac75f22f5636e@mail.gmail.com
Whole thread Raw
In response to Re: idle in transaction...unexpected EOF on client connection  ("Tena Sakai" <tsakai@gallo.ucsf.edu>)
Responses Re: idle in transaction...unexpected EOF on client connection
List pgsql-admin
On Nov 9, 2007 4:36 PM, Tena Sakai <tsakai@gallo.ucsf.edu> wrote:

> Hi Scott,
>
>
>  > Most likely what is happening is that you have a firewall between your
>  > app and your db server that is closing idle connections after x minutes.
>
>  Thanks for your comment.
>
>  I hate to be disagreeable, but the app and postgres are running
>  on the same computer.  The app is a java program using jdbc to
>  issue postgres commands.  However, I see the same message via
>  psql (on the same machine).

Hmmm.  Well, when you see an error like unexpected EOF on client
connection then that means that the client "disappeared" without
closing the connection, or the network connection went away.  Either
way, the pgsql backend was still alive, and tried to send something to
the client, and the client wasn't there.  I.e. the problem isn't
generally a postgresql problem, it's a client problem.  So, the more
info about the client app the better chance of fixing it.

Note that if you've got a lot of "idle in transactions" connections,
that's a bad thing because it prevents postgresql from being properly
vacuumed.  Most connection managers can be set to NOT issue a begin as
part of a connection reset when returning it to the pool.

pgsql-admin by date:

Previous
From: "Tena Sakai"
Date:
Subject: Re: idle in transaction...unexpected EOF on client connection
Next
From: Tom Lane
Date:
Subject: Re: idle in transaction...unexpected EOF on client connection