From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
---|---|
To: | Thomas Hallgren <thhal(at)mailblocks(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: stack depth limit exceeded problem. |
Date: | 2005-09-23 23:30:48 |
Message-ID: | 43349028.2090406@opencloud.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2005-09-23 23:35:55 | Re: PgAdmin3 1.2.2 Install on Win32 Disrupts Pg Service |
Previous Message | Kevin Grittner | 2005-09-23 22:56:58 | vacuum analyze hanging |