[BUGS] Major problem in PostgreSQL JDBC driver that will cause OutOfMemoryErrors

2001-04-10 Thread Gerald Gutierrez
The PostgreSQL JDBC ( bundled with 7.1 RC3 at least) driver makes use of Java's ThreadLocal class in the .../jdbc2/PreparedStatement.java class to hold onto DateFormat classes used during the setTImestamp() and setDate() calls. Sun's J2SE 1.3 has a major bug in the implementation of ThreadLoca

[BUGS] Major Memory Leak in PostgreSQL JDBC Driver

2001-04-10 Thread Gerald Gutierrez
At least the 7.1 RC3 driver has a memory leak in that the .../jdbc2/PreparedStatement.java class uses Java's ThreadLocal object for "optimization" reasons. However, Sun's J2SE 1.3 leaks memory whenever this class is used. Hence, repeated use of the JDBC driver's PreparedStatement class will cause