From: Joel Mc Graw <jpmcgraw1@home.com>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: invoke an external shell script from a function
Date: Fri, 29 Sep 2000 16:20:34 -0700
Message-ID: <39D523C2.800C6D00@home.com> (raw)
References: <Pine.LNX.4.21.0009291830250.363-100000@peter>
Peter Eisentraut wrote:
>
> Chau, Artemis writes:
>
> > Does anyone know how to invoke an external shell script from a function when
> > it is called from a sql statement?
>
> If it's a C function, use system("file").
Is this the only way to do this? I would also like to have a trigger
call an external program. Is there a good place to go for more info on
this?
TIA
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-sql@postgresql.org
Cc: jpmcgraw1@home.com
Subject: Re: invoke an external shell script from a function
In-Reply-To: <39D523C2.800C6D00@home.com>
References: <Pine.LNX.4.21.0009291830250.363-100000@peter> <39D523C2.800C6D00@home.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