Calling Java from psql (was Re: requesting help) - Mailing list pgsql-sql

From Mathijs Brands
Subject Calling Java from psql (was Re: requesting help)
Date
Msg-id 20010326103338.D77438@ilse.nl
Whole thread Raw
Responses Re: Calling Java from psql (was Re: requesting help)
Re: Calling Java from psql (was Re: requesting help)
List pgsql-sql
On Mon, Mar 26, 2001 at 09:53:52AM +0200, Poul L. Christiansen allegedly wrote:
> Log into PostgreSQL using psql and run the help command:
> "\h create trigger".
> 
> See also:
> http://www.postgresql.org/users-lounge/docs/6.5/postgres/sql-createtrigger.htm
> 
> HTH,
> Poul L. Christiansen
> 
> On Sun, 25 Mar 2001, [iso-8859-1] Mohamed ebrahim wrote:
> 
> > Hi
> >     I am an user of postgresql. I want to do some
> > manipulation on table and i want to do some java stuff
> > after inserting a row into table(i.e like sending
> > email). I want to fire the trigger to do this after
> > the insertion took place. I know how to insert into
> > the table but i want to know that it is possible to
> > java stuff after inserting rows each time. Please help
> > me in this stuff. I will be thankful to you.
> > 
> > Thank you
> > Ebrahim

Has anybody ever tried calling Java code from a pgsql trigger written
in C? Shouldn't this be possible using JNI?

I'm not exactly a Java expert myself, but this is the way PHP allows
you to call Java code from your PHP scripts.

Mathijs
-- 
It's not that perl programmers are idiots, it's that the language
rewards idiotic behavior in a way that no other language or tool has
ever done.                                                   Erik Naggum


pgsql-sql by date:

Previous
From: "waheed_rahuman"
Date:
Subject: SQL Date help
Next
From: Norbert Schollum
Date:
Subject: Functions and Triggers