Received: from smaug.polygnosis.com ([195.139.160.221]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5MBg4a23393 for ; Fri, 22 Jun 2001 07:42:05 -0400 (EDT) (envelope-from gunnar@smaug.polygnosis.com) Received: (from gunnar@localhost) by smaug.polygnosis.com (8.11.0/8.11.0) id f5MBgCn02464; Fri, 22 Jun 2001 13:42:12 +0200 To: "Dave Cramer" Cc: "Bruce Momjian" , "Rainer Mager" , "PostgreSQL jdbc list" Subject: Re: Re: [ADMIN] High memory usage [PATCH] References: <200106212223.f5LMNwU08931@candle.pha.pa.us> <018601c0fab3$082dc080$0201a8c0@INSPIRON> From: Gunnar =?iso-8859-1?q?R=F8nning?= Date: 22 Jun 2001 13:42:12 +0200 In-Reply-To: <018601c0fab3$082dc080$0201a8c0@INSPIRON> Message-ID: Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200106/70 X-Sequence-Number: 811 * "Dave Cramer" wrote: | | my two cents worth... | | 1) what is the problem that this is trying to solve, I assume from the | subject that it is some sort of high memory usage? I would like to know as well. | 2) I am trying to understand how a statement would ever be used by more than | one thread at a time? I would think that it would be impossible to share | statements across threads. Quite easy. Just the same way as you share any other object across threads and according to the JDBC spec requires that the driver shoudl be thread safe. | 3) The double locking method used is alledgedly unsafe on SMP machines | http://www.javaworld.com/javaworld/jw-02-2001/jw-0209-double_p.html. Yup, double checked locking is not going to guarantee that you get properly initialized objects with the current Java spec. -- Gunnar Rønning - gunnar@polygnosis.com Senior Consultant, Polygnosis AS, http://www.polygnosis.com/