pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Roland Walter <roland.walter.rwa@gmx.net>
Cc: HÃ¥kan Jacobsson <hakan.jacobsson99@bredband.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Exception-handling
Date: Thu, 21 Dec 2006 12:06:57 -0500
Message-ID: <E2DEB0E0-33B1-4C2A-98CE-760BA406A3DB@fastcrypt.com> (raw)
In-Reply-To: <458ABEA8.8030603@gmx.net>
References: <20061221100121.EJOZ10325.mxfep02.bredband.com@mxfep02>
	<021E5266-98FD-4ECD-8CFD-FBEFE0CAA761@fastcrypt.com>
	<458ABEA8.8030603@gmx.net>


On 21-Dec-06, at 12:04 PM, Roland Walter wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dave Cramer wrote:
>> The only general rule I adhere to is to make sure you clean up your
>> connections in a finally clause
>>
>> Dave
>
> Depends of your application. I usually free up all resources in the
> finally clause, that I do not need any more. The resources are
> ResultSets and Statements and may be connections. Not closing the
> Statments and using the same connection further prooved to be fatal.

My point was to make sure you do your cleanup, whatever it may be in  
a finally clause. This is the most frequent cause of leaking resources.

Dave
>
> Regards,
> Roland.
>
> - --
> Dipl.-Phys. Roland Walter
> mailto: roland (dot) walter (dot) rwa (at) gmx (dot) net
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
>
> iD8DBQFFir6oxoOEAkary1ERAh1gAJ0XCLT7ildof8QbH/x6y+xrPy4xvACeLBwk
> vv9oqUJtZGFW/pYCtfLKDUk=
> =NoBO
> -----END PGP SIGNATURE-----
>




view thread (4+ messages)

Message-ID: <E2DEB0E0-33B1-4C2A-98CE-760BA406A3DB@fastcrypt.com>
Permalink:  ../E2DEB0E0-33B1-4C2A-98CE-760BA406A3DB@fastcrypt.com/
Also on:    postgresql.org/message-id/E2DEB0E0-33B1-4C2A-98CE-760BA406A3DB@fastcrypt.com

 · 

reply

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: pg@fastcrypt.com, roland.walter.rwa@gmx.net, hakan.jacobsson99@bredband.net
  Subject: Re: Exception-handling
  In-Reply-To: <E2DEB0E0-33B1-4C2A-98CE-760BA406A3DB@fastcrypt.com>
  References: <20061221100121.EJOZ10325.mxfep02.bredband.com@mxfep02> <021E5266-98FD-4ECD-8CFD-FBEFE0CAA761@fastcrypt.com> <458ABEA8.8030603@gmx.net> <E2DEB0E0-33B1-4C2A-98CE-760BA406A3DB@fastcrypt.com>

* 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