Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-27 Thread Merlin Moncure
On 7/18/07, Michael Dengler <[EMAIL PROTECTED]> 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: I think you took Tom's comments t

Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Erik Jones
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

Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Michael Dengler
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 sc

Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Adam Tauno Williams
On Wed, 2007-07-18 at 16:02 +0200, Csaba Nagy wrote: > On Wed, 2007-07-18 at 15:36, Michael Dengler wrote: > > Row X is inserted into TableX in DB1 on server1TableX trigger > > function fires and contacts DB2 on server2 and inserts the row into > > TableY on server2. > This kind of problem is

Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Tom Lane
"Michael Dengler" <[EMAIL PROTECTED]> 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. Yo

Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Csaba Nagy
On Wed, 2007-07-18 at 15:36, Michael Dengler wrote: > Row X is inserted into TableX in DB1 on server1TableX trigger > function fires and contacts DB2 on server2 and inserts the row into > TableY on server2. This kind of problem is usually solved more robustly by inserting the "change" into a

Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Heikki Linnakangas
Michael Dengler wrote: > 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. Have a look at contrib/dblink. You'll have to think what you want to happen in error scenarios. For example, if the connection is down, or it brakes just a

[PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Michael Dengler
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 server1TableX trigger function fires and contacts DB2 on server2 and inserts the row into TableY on server2. I've looked arou