Database synchronization

From: "Jyoti Seth" <jyotiseth2001(at)gmail(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Database synchronization
Date: 2007-07-25 10:12:41
Message-ID: 004e01c7cea4$58046570$080d3050$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I have two postgres databases "Db1" and "Db2" on different linux servers.
"DB1" is my master server and its data updates very frequently.

My application access DB2 database, which in turn requires data from Db1
database.

The same can be achieved in either of the following ways:
1. I can have the same tables from Db1 in the Db2 database and use some
replication process to update these tables say using Slony-I. And then our
application accesses the data from the single database.

2. Or I can use dblink to fetch the data from the master database only.

My problem is my master database changes frequently and I always require the
latest information.

Please suggest which is the right approach in this situation.

Thanks,
Jyoti Seth

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2007-07-25 10:24:11 Re: Database synchronization
Previous Message Louis-David Mitterrand 2007-07-24 14:37:37 inheriting a rule or a trigger?