agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Is it safe to use multi-threaded PL/Java in single-threaded postgres process?
Date: Sat, 15 Mar 2014 22:10:47 -0700
Message-ID: <53253257.8070702@hogranch.com> (raw)
In-Reply-To: <0AF1495BB9BA466CAB0D57C2DCAB44DB@maumau>
References: <30A6B4B499494CED93770BBC4835840C@maumau>
<A832684586A84610AD7173AB42138F38@maumau>
<94B1FE06-4C37-488D-84C3-E4E4B0C94D24@me.com>
<0AF1495BB9BA466CAB0D57C2DCAB44DB@maumau>
On 3/15/2014 9:05 PM, MauMau wrote:
> Could you elaborate on this? The details should be the answer I'm
> looking for.
> As I said as below, it doesn't seem that PL/Java obeys the JNI spec,
> because pljava.so is not compiled with -mt, -D_REENTRANT nor
> -D_POSIX_C_SOURCE. In short, I'd like to know why it is safe to make
> JVM to load single-threaded pljava.so.
>
>>> FYI, JNI specification says that the code called from Java VM should
>>> be built for multi-threading as follows. But postgres is not.
'
JNI has two sides to it. nonjava stuff calling into java, and Java
calling into non-java. pl/java implements the first style, non-java
code (postgres core) calling java.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
view thread (13+ messages) latest in thread
Message-ID: <53253257.8070702@hogranch.com>
Permalink: ../53253257.8070702@hogranch.com/
Also on: postgresql.org/message-id/53253257.8070702@hogranch.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 using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] Is it safe to use multi-threaded PL/Java in single-threaded postgres process?
In-Reply-To: <53253257.8070702@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox