Re: stack depth limit exceeded problem.

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: stack depth limit exceeded problem.
Дата
Msg-id 43349028.2090406@opencloud.com
обсуждение исходный текст
Ответ на stack depth limit exceeded problem.  (Thomas Hallgren <thhal@mailblocks.com>)
Ответы Re: stack depth limit exceeded problem.  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-hackers
Thomas Hallgren wrote:

> PL/Java runs a JVM. Since a JVM is multi threaded, PL/Java goes to
> fairly  extreme measures to ensure that only one thread at a time can
> access the backend. So far, this have worked well but there is one small
> problem. [...]

I assume this means you have a single lock serializing requests to the
backend?

If you can't solve the depth checking problem (Tom doesn't seem to like
the idea of multiple threads calling into the backend..), what about
turning the original thread (i.e. the "main" backend thread) into a
"backend interface thread" that does nothing but feed callbacks into the
backend on request? Then run all the user code in a separate thread that
passes backend requests to the interface thread rather than directly
executing them. If it starts extra threads which makes DB requests, the
mechanism stays the same..

-O


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: 64-bit API for large objects
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: PgAdmin3 1.2.2 Install on Win32 Disrupts Pg Service