From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Alan Graham <alan.graham@infonetsystems.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: Trigger to call an external program
Date: Thu, 4 Dec 2003 07:36:27 -0800 (PST)
Message-ID: <20031204073059.P66123@megazone.bigpanda.com> (raw)
In-Reply-To: <1070550790.3133.8.camel@bart.graham.fdns.net>
References: <1070550790.3133.8.camel@bart.graham.fdns.net>
On Thu, 4 Dec 2003, Alan Graham wrote:
> I'm doing a low cost, low performance roll your own replication project,
> between various offices around Australia. The replication is
> asynchronous, and peer to peer. I've looked at the various replication
> projects, and for one reason or another, they're too hard.
>
> My design uses jabber as middleware, using python scripts to do the hard
> work. However, it depends on triggers calling my python scripts to
> work. I can't find a way to call an external script from a trigger.
> I've searched the archives, and found a few other people asking the same
> question, but no answers (apart from the odd sanctimonious "well you
> shouldn't be doing that..." :-).
>
> I thought I was onto a winner with pgplsh, but I can't get it to compile
> with 7.3.4, although it compiled beautifully with 7.2.1.
It takes a little bit of work to get pgplsh to compile for my devel system
(notably that I needed to make sure the server includes were in the -I
path and had to make a few more changes noted below).
I removed the if (DebugLvl > 1) lines and needed to change elog(DEBUG,
lines to one of the new DEBUG levels (I chose DEBUG2). After that it
seemed to compile.
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: sszabo@megazone.bigpanda.com, alan.graham@infonetsystems.com.au
Subject: Re: Trigger to call an external program
In-Reply-To: <20031204073059.P66123@megazone.bigpanda.com>
References: <1070550790.3133.8.camel@bart.graham.fdns.net> <20031204073059.P66123@megazone.bigpanda.com>
* 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