From: Doug McNaught <doug@wireboard.com>
To: Gowey, Geoffrey <ggowey@rxhope.com>
Cc: 'Dr. Evil' <drevil@sidereal.kz>
Cc: pgsql-general@postgresql.org
Subject: Re: PL/java?
Date: 25 Aug 2001 21:41:55 -0400
Message-ID: <m31ylzd2cc.fsf@belphigor.mcnaught.org> (raw)
References: <E15F4B031E17D5118B18009027F67927DAC0@SERVER>
"Gowey, Geoffrey" <ggowey@rxhope.com> writes:
> probably a bad idea. From what I've heard the speed of your java program is
> wholely dependent on the speed of your vm (and most aren't that quick).
> Although it would be nice to have just to say we have it and mysql doesn't
> (then again mysql doesn't have a whole lot of things that pgsql already
> has).
Well, compiled Java code can't be that much slower than PL/pgSQL code
or TCL. both of which work fine for lots of people...
I've though about doing this. It's definitely doable, but here are
some gotchas:
* The JVM is multithreaded, while backends are single-threaded. This
could open up a big can of worms if you're not careful. On
platforms with different libc's for threaded/nonthreaded code, you'd
have to get the linking right.
* In order to be useful, you'd need to write a JNI wrapper for the SPI
libraries. Again, threading issues may apply.
It's an interesting project, but not one I've had time to look at yet.
-Doug
--
Free Dmitry Sklyarov!
http://www.freesklyarov.org/
We will return to our regularly scheduled signature shortly.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: doug@wireboard.com, ggowey@rxhope.com, drevil@sidereal.kz
Subject: Re: PL/java?
In-Reply-To: <m31ylzd2cc.fsf@belphigor.mcnaught.org>
References: <E15F4B031E17D5118B18009027F67927DAC0@SERVER> <m31ylzd2cc.fsf@belphigor.mcnaught.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox