Sync 2 tables in 2 databases - Mailing list pgsql-general

From SHARMILA JOTHIRAJAH
Subject Sync 2 tables in 2 databases
Date
Msg-id 288306.49184.qm@web110716.mail.gq1.yahoo.com
Whole thread Raw
Responses Re: Sync 2 tables in 2 databases
List 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
syncedjust 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




pgsql-general by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Server Shutting Down
Next
From: Scott Marlowe
Date:
Subject: Re: Sync 2 tables in 2 databases