From: Erik Jones <erik@myemma.com>
To: Michael Dengler <michael.dengler@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to use a trigger to write rows to a remote server
Date: Wed, 18 Jul 2007 12:06:34 -0500
Message-ID: <AC99D16D-3B40-4988-BB69-50087CCCFABF@myemma.com> (raw)
In-Reply-To: <e8733d090707180930t12f701edn728cdc486f035cd5@mail.gmail.com>
References: <e8733d090707180636q45bb5d16vff3e79c2d60d2e83@mail.gmail.com>
<18352.1184770316@sss.pgh.pa.us>
<e8733d090707180930t12f701edn728cdc486f035cd5@mail.gmail.com>
On Jul 18, 2007, at 11:30 AM, Michael Dengler wrote:
> Hmm..I was hoping to avoid personal insults....
>
> Anyway, Nuts or not...what I am attempting is to simply have row
> from one table inserted into another servers DB I don't see it as
> replication because:
>
> a) The destination table will have a trigger that modifies the
> arriving data to fit its table scheme.
> b) It is not critical that the data be synchronous (ie a lost row
> on the destination DB is not a big deal)
> c) I see as more of a provision of data to the destination DB NOT A
> REPLICATION OF DATA.
>
> Essentially the remote server just wants to know when some record
> arrives at the source server and wants to know some of the info
> contained in the new record.
>
> And yes it may be that I know little about the myriad of problems
> involved with replication...but I do know how to carry on a civil,
> adult conversation....maybe we can have a knowledge exchange.
>
> Cheers
>
> Mike
Mike,
If all you need is for your trigger to make a simple query on another
db then you can use dblink or an untrusted version of one of the
available procedural languages such as plperlu or plpythonu.
Erik Jones
Software Developer | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.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-performance@postgresql.org
Cc: erik@myemma.com, michael.dengler@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: How to use a trigger to write rows to a remote server
In-Reply-To: <AC99D16D-3B40-4988-BB69-50087CCCFABF@myemma.com>
References: <e8733d090707180636q45bb5d16vff3e79c2d60d2e83@mail.gmail.com> <18352.1184770316@sss.pgh.pa.us> <e8733d090707180930t12f701edn728cdc486f035cd5@mail.gmail.com> <AC99D16D-3B40-4988-BB69-50087CCCFABF@myemma.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