Re: [INTERFACES] Java

From: Peter Mount <peter(at)retep(dot)org(dot)uk>
To: Jeff MacDonald <jeff(at)hub(dot)org>, Jeff MacDonald <jeff(at)hub(dot)org>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] Java
Date: 1999-09-07 21:07:30
Message-ID: 9909072216510M.00229@tabatha
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Tue, 07 Sep 1999, Jeff MacDonald wrote:
> This question was sent to me, and i'm wondering if it's viable
> or if anyone else has any interest in it ?
>
> ++++++++++++++++
>
> Have you any plans to make possible writing simple functions/stored
> procedures in Java to extend PostgreSQL ?
>
> ++++++++++++++++
>
> Now my question related to this, if i understand correctly
> this would mean we would need the java runtime thingy in Postgres
> and would seriously wreck our speed . Right ?

I remember writing something some months ago (check the archives) of a possible
way around this.

IIRC, I seem to remember thinking along the lines of a single JVM thats run by
the Postmaster, and when a backend calls a stored procedure thats in Java, the
first call creates a new Thread/ThreadGroup in the JVM, and any call from that
backend goes to that thread using a simple set of Interface's.

When the backend closes, the ThreadGroup is killed off.

I think that's what I originally posted, but it would take someone with a lot
of time and JNI experience to pull it off.

Peter

--
Peter T Mount peter(at)retep(dot)org(dot)uk Tel +44 (0) 7990 898443
Homepage http://www.retep.org.uk Fax UK +44 (0) 870 0568837
PostgreSQL JDBC http://www.retep.org.uk/postgres/ US +1 734 661 0110
Java PDF Generator http://www.retep.org.uk/pdf/ More details on the website

In response to

  • Java at 1999-09-07 17:37:18 from Jeff MacDonald

Browse pgsql-interfaces by date

  From Date Subject
Next Message Dan Rosner 1999-09-07 21:59:47 Jbuilder JDBC Explorer
Previous Message Gene Selkov Jr. 1999-09-07 19:31:07 Re: [INTERFACES] documentation for ssh tunnelling of connections?