From: Tomasz Myrta <jasiek@klaster.net>
To: David Loh <david@bizsurf.com>
To: pgsql-sql@postgresql.org
Subject: Re: Trigger that will execute external program
Date: Mon, 17 Feb 2003 07:18:21 +0800
Message-ID: <20030217071821.M2591@klaster.net> (raw)
In-Reply-To: <001e01c2d64c$2ab838d0$f92c2c0a@davidloh>
References: <001e01c2d64c$2ab838d0$f92c2c0a@davidloh>
> 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
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: jasiek@klaster.net, david@bizsurf.com
Subject: Re: Trigger that will execute external program
In-Reply-To: <20030217071821.M2591@klaster.net>
* 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