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

Поиск
Список
Период
Сортировка
От Gunnar Rønning
Тема Re: Re: [ADMIN] High memory usage [PATCH]
Дата
Msg-id m2bsngpq7s.fsf@smaug.polygnosis.com
обсуждение исходный текст
Список pgsql-jdbc
* "Dave Cramer" <davec@sentricity.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@polygnosis.com
Senior Consultant, Polygnosis AS, http://www.polygnosis.com/

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Thomas O'Dowd"
Дата:
Сообщение: updateable ResultSets?
Следующее
От: Gunnar Rønning
Дата:
Сообщение: Re: Re: [ADMIN] High memory usage [PATCH]