pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Dengler <michael.dengler@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to use a trigger to write rows to a remote server
Date: Wed, 18 Jul 2007 10:51:56 -0400
Message-ID: <18352.1184770316@sss.pgh.pa.us> (raw)
In-Reply-To: <e8733d090707180636q45bb5d16vff3e79c2d60d2e83@mail.gmail.com>
References: <e8733d090707180636q45bb5d16vff3e79c2d60d2e83@mail.gmail.com>

"Michael Dengler" <michael.dengler@gmail.com> writes:
> 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.
> ...
> This is not replication, I'm not interested in a full blown trigger based
> replication solution.

To be blunt, you're nuts.  You *are* building a trigger based
replication system, and the fact that you think you can cut corners
just shows how little you know about the problems involved.

Use Slony, or some other solution that someone else has already gotten
the bugs out of.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <18352.1184770316@sss.pgh.pa.us>
Permalink:  ../18352.1184770316@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18352.1184770316@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.dengler@gmail.com
  Subject: Re: How to use a trigger to write rows to a remote server
  In-Reply-To: <18352.1184770316@sss.pgh.pa.us>

* 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