pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Loh <david@bizsurf.com>
To: pgsql-sql@postgresql.org
Subject: Trigger that will execute external program
Date: Mon, 17 Feb 2003 14:16:44 +0800
Message-ID: <001e01c2d64c$2ab838d0$f92c2c0a@davidloh> (raw)

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.

view thread (4+ messages)  latest in thread

Message-ID: <001e01c2d64c$2ab838d0$f92c2c0a@davidloh>
Permalink:  ../001e01c2d64c$2ab838d0$f92c2c0a@davidloh/
Also on:    postgresql.org/message-id/001e01c2d64c$2ab838d0$f92c2c0a@davidloh

 · 

reply

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: david@bizsurf.com
  Subject: Re: Trigger that will execute external program
  In-Reply-To: <001e01c2d64c$2ab838d0$f92c2c0a@davidloh>

* 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