From: Clayton Cottingham <clayton@marketingchallenge.com>
To: S.F. Lee <sflee_tw@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to execute a C program via trigger ?
Date: 05 Dec 2000 09:58:41 PST
Message-ID: <200012051757.eB5HvsU81547@mail.postgresql.org> (raw)
In-Reply-To: <20001205022029.62885.qmail@web10401.mail.yahoo.com>
References: <20001205022029.62885.qmail@web10401.mail.yahoo.com>
On Mon, 4 Dec 2000 18:20:29 -0800 (PST), S.F. Lee said:
> Thank for your hint, but I have some questions :
>
> 1. Do I have to compile the C program into a shared
> object (*.so)?
yes
> 2. Do I have to use SPI (SPI is too complicate to
> me)?
>
> My request is very simple. I have a program
> (my_c_program)
> that I can execute it under shell by typing
> (my_c_program).
> Basically my_c_program is not a function.
>
im not sure anyone?
> I want to fire a trigger after I update the field
> (x) in table foo, and the trigger can run the
> my_c_program. Is there an easy way to execute a
> PROCESS
> via trigger?
>
> regards, S.F. Lee
>
id say dont use C!! use pl/sql
but if your trying to learn the prog of c functions
youll have to get help elsewhere unfortunatley
im not even newbie status on c!
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: clayton@marketingchallenge.com, sflee_tw@yahoo.com
Subject: Re: how to execute a C program via trigger ?
In-Reply-To: <200012051757.eB5HvsU81547@mail.postgresql.org>
* 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