Sync 2 tables in 2 databases

From: SHARMILA JOTHIRAJAH <sharmi_jo(at)yahoo(dot)com>
To: General postgres mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Sync 2 tables in 2 databases
Date: 2009-03-11 19:20:14
Message-ID: 288306.49184.qm@web110716.mail.gq1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi,
I have 2 postgres databases with similar structure. I want to keep some tables in sync in these 2 databases(They can be synced just once a day). Is there a way to archive this using function ?
Something like....

Select syncTable('foo')

where syncTable is a function that compares table 'foo' in db1 with table 'foo' in db2 and make changes(update/insert/delete) to 'foo' in db1

Thanks
Sharmila

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-03-11 19:23:31 Re: Sync 2 tables in 2 databases
Previous Message Steve Crawford 2009-03-11 18:47:21 Re: Server Shutting Down