Re: Re: [ADMIN] High memory usage [PATCH]

From: Gunnar Rønning <gunnar(at)polygnosis(dot)com>
To: "Dave Cramer" <davec(at)sentricity(dot)com>
Cc: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "'Rainer Mager'" <rmager(at)vgkk(dot)com>, "'PostgreSQL jdbc list'" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Re: [ADMIN] High memory usage [PATCH]
Date: 2001-06-22 14:02:47
Message-ID: m2bsngpq7s.fsf@smaug.polygnosis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-jdbc pgsql-patches

* "Dave Cramer" <davec(at)sentricity(dot)com> 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(at)polygnosis(dot)com
Senior Consultant, Polygnosis AS, http://www.polygnosis.com/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gunnar Rønning 2001-06-22 14:13:31 Re: Re: [ADMIN] High memory usage [PATCH]
Previous Message Dave Cramer 2001-06-22 13:19:05 RE: Re: [ADMIN] High memory usage [PATCH]

Browse pgsql-jdbc by date

  From Date Subject
Next Message Thomas O'Dowd 2001-06-22 14:10:37 updateable ResultSets?
Previous Message Dave Cramer 2001-06-22 13:19:05 RE: Re: [ADMIN] High memory usage [PATCH]

Browse pgsql-patches by date

  From Date Subject
Next Message Gunnar Rønning 2001-06-22 14:13:31 Re: Re: [ADMIN] High memory usage [PATCH]
Previous Message Dave Cramer 2001-06-22 13:19:05 RE: Re: [ADMIN] High memory usage [PATCH]