Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-04-02 Thread Peter T Mount
Quoting A James Lewis <[EMAIL PROTECTED]>: > > Before I go investigating this, is it possible to trigger an arbitrary > program from the SQL, say a shell script? In theory yes, but I'd suspect not a good idea. Even more so with java, as the JVM's startup time is pretty big. Having it talk to

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-30 Thread A James Lewis
Before I go investigating this, is it possible to trigger an arbitrary program from the SQL, say a shell script? Also, why am I getting "not subscribed messages", I am subscribed since I'm replying to a message that was sent to me!! On Thu, 29 Mar 2001, Peter Mount wrote: > At 21:37 26/03/01 +

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread Peter Eisentraut
Tom Lane writes: > I'm generally pretty suspicious of any system design that requires > calling outside programs from an SQL function. The problem is that > this fundamentally breaks transactional semantics: if the transaction > is rolled back after the function call, its effects inside the data

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > A James Lewis writes: >> Before I go investigating this, is it possible to trigger an arbitrary >> program from the SQL, say a shell script? > At the lowest level, you can generally do anything a C program can do. > Writing the equivalent of system()

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread Peter Eisentraut
A James Lewis writes: > Before I go investigating this, is it possible to trigger an arbitrary > program from the SQL, say a shell script? At the lowest level, you can generally do anything a C program can do. Writing the equivalent of system() in SQL should be rather trivial. You can also take

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread clayton cottingham
Peter Mount wrote: > > At 10:33 26/03/01 +0200, Mathijs Brands wrote: > > >Has anybody ever tried calling Java code from a pgsql trigger written > >in C? Shouldn't this be possible using JNI? > > This was discussed recently. > > >I'm not exactly a Java expert myself, but this is the way PHP al

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread Mathijs Brands
On Thu, Mar 29, 2001 at 10:10:44AM +0100, Peter Mount allegedly wrote: > At 21:37 26/03/01 +0200, Mathijs Brands wrote: > >On Mon, Mar 26, 2001 at 07:00:43PM +0200, Peter Eisentraut allegedly wrote: > > > Mathijs Brands writes: > > > > > > > Has anybody ever tried calling Java code from a pgsql tr

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread Peter Mount
At 21:37 26/03/01 +0200, Mathijs Brands wrote: >On Mon, Mar 26, 2001 at 07:00:43PM +0200, Peter Eisentraut allegedly wrote: > > Mathijs Brands writes: > > > > > Has anybody ever tried calling Java code from a pgsql trigger written > > > in C? Shouldn't this be possible using JNI? > > > > I have, a

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread Peter Mount
At 10:33 26/03/01 +0200, Mathijs Brands wrote: >Has anybody ever tried calling Java code from a pgsql trigger written >in C? Shouldn't this be possible using JNI? This was discussed recently. >I'm not exactly a Java expert myself, but this is the way PHP allows >you to call Java code from your

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-26 Thread Mathijs Brands
On Mon, Mar 26, 2001 at 07:00:43PM +0200, Peter Eisentraut allegedly wrote: > Mathijs Brands writes: > > > Has anybody ever tried calling Java code from a pgsql trigger written > > in C? Shouldn't this be possible using JNI? > > I have, and given the current Java implementations it's a desaster.

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-26 Thread Peter Eisentraut
Mathijs Brands writes: > Has anybody ever tried calling Java code from a pgsql trigger written > in C? Shouldn't this be possible using JNI? I have, and given the current Java implementations it's a desaster. -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/ ---

Calling Java from psql (was Re: [SQL] requesting help)

2001-03-26 Thread Mathijs Brands
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

Re: [SQL] requesting help

2001-03-25 Thread Poul L. Christiansen
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 wan