From: | Doug McNaught <doug(at)wireboard(dot)com> |
---|---|
To: | "Gowey, Geoffrey" <ggowey(at)rxhope(dot)com> |
Cc: | "'Dr(dot) Evil'" <drevil(at)sidereal(dot)kz>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: PL/java? |
Date: | 2001-08-26 01:41:55 |
Message-ID: | m31ylzd2cc.fsf@belphigor.mcnaught.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Gowey, Geoffrey" <ggowey(at)rxhope(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-08-26 02:50:38 | Re: PL/java? |
Previous Message | Sean Chittenden | 2001-08-26 01:29:29 | Re: PL/java? |