From: Michael Dengler <michael.dengler@gmail.com>
To: pgsql-performance@postgresql.org
Subject: How to use a trigger to write rows to a remote server
Date: Wed, 18 Jul 2007 09:36:33 -0400
Message-ID: <e8733d090707180636q45bb5d16vff3e79c2d60d2e83@mail.gmail.com> (raw)
Hi All,
I am trying to find out how to use a trigger function on a table to copy any
inserted row to a remote PG server.
ie:
Row X is inserted into TableX in DB1 on server1....TableX trigger function
fires and contacts DB2 on server2 and inserts the row into TableY on
server2.
I've looked around and can't see to find this. Essentially I need to know
how to write to a remote DB server from within a trigger function.
This is not replication, I'm not interested in a full blown trigger based
replication solution.
Any Help is greatly appreciated!
Thanks
Mike
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-performance@postgresql.org
Cc: michael.dengler@gmail.com
Subject: Re: How to use a trigger to write rows to a remote server
In-Reply-To: <e8733d090707180636q45bb5d16vff3e79c2d60d2e83@mail.gmail.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