pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gunnar Rønning <gunnar@polygnosis.com>
To: Dave Cramer <Dave@micro-automation.net>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Rainer Mager <rmager@vgkk.com>
Cc: PostgreSQL jdbc list <pgsql-jdbc@postgresql.org>
Subject: Re: Re: [ADMIN] High memory usage [PATCH]
Date: 22 Jun 2001 13:42:12 +0200
Message-ID: <m2bsngrbaj.fsf@smaug.polygnosis.com> (raw)
In-Reply-To: <018601c0fab3$082dc080$0201a8c0@INSPIRON>
References: <200106212223.f5LMNwU08931@candle.pha.pa.us>
	<018601c0fab3$082dc080$0201a8c0@INSPIRON>

* "Dave Cramer" <Dave@micro-automation.net> 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/



view thread (46+ messages)  latest in thread

Message-ID: <m2bsngrbaj.fsf@smaug.polygnosis.com>
Permalink:  ../m2bsngrbaj.fsf@smaug.polygnosis.com/
Also on:    postgresql.org/message-id/m2bsngrbaj.fsf@smaug.polygnosis.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-admin@postgresql.org
  Cc: gunnar@polygnosis.com, Dave@micro-automation.net, pgman@candle.pha.pa.us, rmager@vgkk.com, pgsql-jdbc@postgresql.org
  Subject: Re: [ADMIN] High memory usage [PATCH]
  In-Reply-To: <m2bsngrbaj.fsf@smaug.polygnosis.com>
  References: <200106212223.f5LMNwU08931@candle.pha.pa.us> <018601c0fab3$082dc080$0201a8c0@INSPIRON> <m2bsngrbaj.fsf@smaug.polygnosis.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