Connecting Tech Pros Worldwide Forums | Help | Site Map

creating a trigger to remote database

Newbie
 
Join Date: Nov 2008
Posts: 14
#1: Oct 21 '09
Hi,

I have to feed database A from database B which are in different machines but in the same network when a insert/update occurs on database B. I decided to use trigger for this and was trying to write a trigger but failed so far.... (I have written triggers in mysql but using pgsql is a bit difficult to me...) It will be so helpful to me if anyone can post a trigger for my scenario.

Please be kind enough to show me better ways to handle this scenario if any alternative ways exists... I have heard that this can be achieved by database replication too but i don't know how to do it.

Thanks in advance.

Moderator
 
Join Date: Dec 2006
Location: Europe
Posts: 293
#2: Oct 21 '09

re: creating a trigger to remote database


It look's like job for Slony. Look for manual at www.slony.info
Newbie
 
Join Date: Nov 2008
Posts: 14
#3: Oct 22 '09

re: creating a trigger to remote database


Thanks for your reply rski.. It was very helpful. I will try it and get back if i face any problems...

Thanks again.
Reply

Tags
postgre, remote, replication, trigger, update