Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.org (8.9.3/8.9.3) with ESMTP id RAA03884 for ; Tue, 7 Sep 1999 17:24:27 -0400 (EDT) (envelope-from peter@retep.org.uk) Received: from maidast.demon.co.uk ([158.152.22.37] helo=maidast.retep.org.uk) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 11OSj3-000IzM-0A; Tue, 7 Sep 1999 21:24:25 +0000 Received: from tabatha (root@tabatha.retep.org.uk [192.168.4.4]) by maidast.retep.org.uk (8.9.3/8.9.3) with SMTP id WAA21560; Tue, 7 Sep 1999 22:22:40 +0100 From: Peter Mount Reply-To: peter@retep.org.uk Organization: retep org To: Jeff MacDonald , Jeff MacDonald , pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] Java Date: Tue, 7 Sep 1999 22:07:30 +0100 X-Mailer: KMail [version 1.0.17] Content-Type: text/plain References: MIME-Version: 1.0 Message-Id: <9909072216510M.00229@tabatha> Content-Transfer-Encoding: 8bit X-KMail-Mark: 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@retep.org.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