From: Alex Knight <knight@phunc.com>
To: Dr. Evil <drevil@sidereal.kz>
To: pgsql-general@postgresql.org
Subject: RE: PL/java?
Date: Sun, 26 Aug 2001 17:22:38 -0700
Message-ID: <MAEFKNDLAHNIFMAIEGHJGEHLCDAA.knight@phunc.com> (raw)
In-Reply-To: <20010826235135.29159.qmail@sidereal.kz>
I agree that there could be quite a few circumstances where you would
want to utilize the class libraries. I'm doing a lot of PKI myself,
and I could see how painful it would be to waste time trying in C,
when Java _does_ really offer a lot.
-Kevin
-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org]On Behalf Of Dr. Evil
Sent: Sunday, August 26, 2001 4:52 PM
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] PL/java?
> You make a good point about Java not being "portable" (the JVM not
> being fully portable anyways). That could certainly be enough reason
> to not benefit the PostgreSQL community as a whole. It _is_ a shame
> that Java 2 hasn't made it over to other platforms yet.
It will make it to the other platforms eventually, I hope. It's a
shame that Sun's "write once, compile once, run everywhere" promise is
just marketing to some extent.
> Although, I haven't thought about it much, but I'm not sure I see
> any advantages of using Java over PG/plsql. Other than streamlining
> _some_ development since developers in a Java shop would know Java,
> I don't see any language-specific advantages.
pl/pgsql is a great language, I agree. However, java has some
tremendous advantages. The big one is its classes. I needed to do
some DES encryption within the PG database. Well, there's no DES
function in PG, or in pl/pgsql, so I had to write it as a C function
and then link it in. Sure, that works, but the point is, if we had
pl/java, I would just call java.security.encryption.des() (or whatever
it is) and it would be there. Right now I need to do some public key
stuff. I could try to link that all in in C, but that would be a huge
pain. The java standard classes do just about everything. pl/pgsql
will never come close to that.
Also, java is object oriented and more convenient for writing larger
things.
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/users-lounge/docs/faq.html
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: knight@phunc.com, drevil@sidereal.kz
Subject: Re: PL/java?
In-Reply-To: <MAEFKNDLAHNIFMAIEGHJGEHLCDAA.knight@phunc.com>
References: <20010826235135.29159.qmail@sidereal.kz> <MAEFKNDLAHNIFMAIEGHJGEHLCDAA.knight@phunc.com>
* 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