Re: Connection closing

From: Richard Huxton <dev(at)archonet(dot)com>
To: Clifton Zama <csz(at)jhb(dot)ucs(dot)co(dot)za>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Connection closing
Date: 2005-04-12 09:12:07
Message-ID: 425B90E7.9060708@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Ben-Nes 2005-04-12 09:24:26 Re: PostgreSQL 8.0.2 Now Available
Previous Message Oleg Bartunov 2005-04-12 08:43:49 Re: Log File Maintainance