Re: Trigger that will execute external program

From: "Tomasz Myrta" <jasiek(at)klaster(dot)net>
To: "David Loh" <david(at)bizsurf(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Trigger that will execute external program
Date: 2003-02-16 23:18:21
Message-ID: 20030217071821.M2591@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Hi all.
> I'd like to know if postgresql has the capability of execute
> external program with the trigger, for example, I had a trigger call
> "exceed_limit", when this trigger has fire, instead of update other
> relations, it will also execute a external program '/bin/send_email',
> is that possble ? If it's possible, can any of you guy please show
> me how to do it ? Thanks in advance.
Read Postgresql documentation: 21.4. Trusted and Untrusted PL/Perl.
Probably C functions have also ability for running system commands.
Regards,
Tomasz Myrta

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2003-02-17 04:02:55 Re: Table Pivot
Previous Message Vic Cekvenich 2003-02-16 17:14:38 Re: Table Pivot