Received: from smaug.polygnosis.com ([195.139.160.221]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5ME21a93788 for ; Fri, 22 Jun 2001 10:02:01 -0400 (EDT) (envelope-from gunnar@smaug.polygnosis.com) Received: (from gunnar@localhost) by smaug.polygnosis.com (8.11.0/8.11.0) id f5ME2lB06451; Fri, 22 Jun 2001 16:02:47 +0200 To: "Dave Cramer" Cc: "'Bruce Momjian'" , "'Rainer Mager'" , "'PostgreSQL jdbc list'" Subject: Re: Re: [ADMIN] High memory usage [PATCH] References: <000001c0fb1d$ee00d830$0201a8c0@INSPIRON> From: Gunnar =?iso-8859-1?q?R=F8nning?= Date: 22 Jun 2001 16:02:47 +0200 In-Reply-To: <000001c0fb1d$ee00d830$0201a8c0@INSPIRON> Message-ID: Lines: 32 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/74 X-Sequence-Number: 815 * "Dave Cramer" wrote: | | On the thread safe issue: I am having a hard time understanding how one | would share a statement across threads. I would expect that threadsafe | just means don't use static buffers so that I can have multiple | statements in multiple threads. I don't think it is possible to have two | threads concurrently doing a query using one statement. This being said, | I don't thing it is necessary to go to great lengths to lock within the | statement as long as all the members within the statement are | non-static. | | Comments? According to the spec. you should be able to reference the same statement from several threads at the same time. I never do this myself but there might be scenarios where this is feasible, ie. another thread calls Statement.cancel() to cancel the execution of a long running statement. I definitaly think the JDBC driver for PostgreSQL needs more attention from the community. It seems like Peter Mount has very little time to spend on it, unfortunately that is the case with me as well(as long as I don't get paid for it...). Among other things I would love to see better support for BLOBs, but I for now we will have to go with MySQL :-( regards, Gunnar -- Gunnar Rønning - gunnar@polygnosis.com Senior Consultant, Polygnosis AS, http://www.polygnosis.com/