Calling Java from psql (was Re: requesting help)

From: Mathijs Brands <mathijs(at)ilse(dot)nl>
To: pgsql-sql(at)postgresql(dot)org
Subject: Calling Java from psql (was Re: requesting help)
Date: 2001-03-26 08:33:38
Message-ID: 20010326103338.D77438@ilse.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Karel Zak 2001-03-26 08:58:06 Re: SQL Date help
Previous Message waheed_rahuman 2001-03-26 08:24:07 SQL Date help