Re: Re: Memory Leak / Prepared Statement - Mailing list pgsql-jdbc

From Gunnar Rønning
Subject Re: Re: Memory Leak / Prepared Statement
Date
Msg-id m2ofpw1oaa.fsf@smaug.polygnosis.com
Whole thread Raw
In response to Re: Memory Leak / Prepared Statement  (Barry Lind <barry@xythos.com>)
List pgsql-jdbc
* Barry Lind <barry@xythos.com> wrote:
|
| example are you always ensuring that you are closing your
| PreparedStatement objects? (ideally in a try/finally block to ensure
| that you don't forget to close them when exceptions are thrown).  I

;-) This is why I usually insist on applying the command pattern. Then
you only have one place to do cleanup(or other exception handling - waiting
for errorcodes...).


--
Gunnar Rønning - gunnar@polygnosis.com
Senior Consultant, Polygnosis AS, http://www.polygnosis.com/

pgsql-jdbc by date:

Previous
From: John Cook
Date:
Subject: Re: Re: Memory Leak / Prepared Statement
Next
From: Bruce Momjian
Date:
Subject: Re: Patch to improve commit time performance and a few other things