pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Joost Kraaijeveld <J.Kraaijeveld@askesis.nl>
Cc: Pgsql-Admin (E-mail) <pgsql-admin@postgresql.org>
Subject: Re: Run external program on a trigger?
Date: Thu, 20 Jan 2005 14:12:01 +0100
Message-ID: <200501201412.01494.peter_e@gmx.net> (raw)
In-Reply-To: <A3D1526C98B7C1409A687E0943EAC41048A0D3@obelix.askesis.nl>
References: <A3D1526C98B7C1409A687E0943EAC41048A0D3@obelix.askesis.nl>

Joost Kraaijeveld wrote:
> Is it possible to run an arbitrary external program on my Linux
> machine if a trigger fires?

Sure, just have the trigger procedure call the external program.  The 
untrusted languages can do that, or if you want to go barebones, try 
PL/sh (http://developer.postgresql.org/~petere/pgplsh/)/

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



view thread (2+ messages)

Message-ID: <200501201412.01494.peter_e@gmx.net>
Permalink:  ../200501201412.01494.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200501201412.01494.peter_e@gmx.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter_e@gmx.net, J.Kraaijeveld@askesis.nl
  Subject: Re: Run external program on a trigger?
  In-Reply-To: <200501201412.01494.peter_e@gmx.net>
  References: <A3D1526C98B7C1409A687E0943EAC41048A0D3@obelix.askesis.nl> <200501201412.01494.peter_e@gmx.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