Re: One process per session lack of sharing - Mailing list pgsql-hackers

From Dave Cramer
Subject Re: One process per session lack of sharing
Date
Msg-id CADK3HHLPQ=b_vZvuJYtoJRHjCozLtwNf=givwxTPG-k0fLcTwQ@mail.gmail.com
Whole thread Raw
In response to Re: One process per session lack of sharing  (AMatveev@bitec.ru)
Responses Re: One process per session lack of sharing  (AMatveev@bitec.ru)
List pgsql-hackers


On 18 July 2016 at 06:04, <AMatveev@bitec.ru> wrote:
Hi

> There's https://github.com/jnr/jnr-ffi that enables to call C
> functions without resorting to writing JNI wrappers.
I have not said that you are wrong.
It's the dark side of "like seprate process"
They can cheaply call sql from jvm.
And they can't cheaply call jvm from sql.

This https://github.com/davecramer/plj-new is a very old project that did work at one time which attempted to do RPC calls to the jvm to address exactly this problem.

However "cheaply" calling jvm from sql or vice-versa is not really possible.

I do like the idea of the background worker and shared memory though. 

pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: pg_xlogdump follow into the future
Next
From: Merlin Moncure
Date:
Subject: Re: DO with a large amount of statements get stuck with high memory consumption