Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBCDSkm65949 for ; Tue, 12 Dec 2000 08:28:46 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from marketingchallenge.com (vpn.marketingchallenge.com [216.13.247.200]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eB5HvsU81547 for ; Tue, 5 Dec 2000 12:57:54 -0500 (EST) (envelope-from clayton@marketingchallenge.com) Message-Id: <200012051757.eB5HvsU81547@mail.postgresql.org> Received: (qmail 18588 invoked from network); 5 Dec 2000 17:58:06 -0000 Received: from unknown (HELO klay.imc) (192.168.1.3) by marketingchallenge.com with SMTP; 5 Dec 2000 17:58:06 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: Clayton Cottingham To: "S.F. Lee" Cc: pgsql-sql@postgresql.org Subject: Re: how to execute a C program via trigger ? X-Mailer: Pronto v2.2.1 Date: 05 Dec 2000 09:58:41 PST Reply-To: Clayton Cottingham In-Reply-To: <20001205022029.62885.qmail@web10401.mail.yahoo.com> References: <20001205022029.62885.qmail@web10401.mail.yahoo.com> X-Archive-Number: 200012/80 X-Sequence-Number: 411 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!