Re: Connection closing - Mailing list pgsql-general

From Richard Huxton
Subject Re: Connection closing
Date
Msg-id 425B90E7.9060708@archonet.com
Whole thread Raw
In response to Connection closing  (Clifton Zama <csz@jhb.ucs.co.za>)
List pgsql-general
Clifton Zama wrote:
> Hi
>
> What would cause a connection to automatically close within a java program.It
> gets to a point where I have an inner loop that calls a recursive method that
> creates resultsets.But I am closing all my result sets, so I do not know why
> the connection simply closes itself.Please help.

Turn logging on at the server (or turn the level of detail up). There
will be a line saying why the connection closed. Presumably there is a
status code available via JDBC too, but the server-side logs will tell
you whether PG or your client is closing the connection.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Log File Maintainance
Next
From: Michael Ben-Nes
Date:
Subject: Re: PostgreSQL 8.0.2 Now Available