From: Chris Browne <cbbrowne@acm.org>
To: pgsql-admin@postgresql.org
Subject: Re: triggers
Date: Thu, 08 Sep 2005 18:29:01 -0400
Message-ID: <60wtlr6vo2.fsf@dba2.int.libertyrms.com> (raw)
References: <a3cc7917050908135979baef8c@mail.gmail.com>
kailash.vyas@gmail.com (Kailash Vyas) writes:
> hi
> I have a query regarding triggers.
> On INSERT, UPDATE, DELETE I want to fire a trigger to relect it to another database on postgres sever.
> how can I do this operation.
> Thanks in advance,
> Kailash Vyas
If you wish the trigger to result in some action taking place on
another database, then there are two major methodologies available:
1. The trigger could RAISE an event.
A LISTENing daemon would see that event, and do something in the
other database.
2. The trigger could write data into a replicated table.
The replication system (possibly Slony-I?) would then copy
the replicable data to the other database.
--
"cbbrowne","@","cbbrowne.com"
http://cbbrowne.com/info/slony.html
Rules of the Evil Overlord #52. "I will hire a team of board-certified
architects and surveyors to examine my castle and inform me of any
secret passages and abandoned tunnels that I might not know about."
<http://www.eviloverlord.com/;
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: cbbrowne@acm.org
Subject: Re: triggers
In-Reply-To: <60wtlr6vo2.fsf@dba2.int.libertyrms.com>
References: <a3cc7917050908135979baef8c@mail.gmail.com> <60wtlr6vo2.fsf@dba2.int.libertyrms.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