Re: peer-to-peer replication with Postgres - Mailing list pgsql-general

From Mike Christensen
Subject Re: peer-to-peer replication with Postgres
Date
Msg-id AANLkTilrBZ69QP6uAGPrh2sxzjxxxXNvMDBIN3EWRDX7@mail.gmail.com
Whole thread Raw
In response to Re: peer-to-peer replication with Postgres  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: peer-to-peer replication with Postgres  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
The concept of updating one database and doing all your reads from
another database is kinda confusing to me.  Does that mean you have to
design your whole app around that concept, have a different connection
string and what not for your "writable" database and "read-only
databases"?  I'm using Castle ActiveRecord which I'm not even sure
supports that (without a ton of custom code anyway).

Is there any sort of abstraction layer (like in the driver level) that
can abstract that and just make updates go to one DB and reads
round-robin to other DBs?  Hopefully there's a way to make this design
simple to implement.

Mike

On Mon, May 10, 2010 at 6:23 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> On Mon, May 10, 2010 at 7:21 PM, Mike Christensen <mike@kitchenpc.com> wrote:
>> Man that sounds awesome.  I need that now.  So does that mean you'd
>> have one beefy SQL server for all the updates and everything writes to
>> that, and then you'd have a bunch of read-only servers and new data
>> trickles into them from the master continuously?
>
> Yep.  You can also do something similar but less efficient now with
> slony or some other replication engine.  But they're less simple to
> set up and usually less efficient than log shipping.
>

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: How to do pg_dump + pg_restore within Perl script?
Next
From: Scott Marlowe
Date:
Subject: Re: peer-to-peer replication with Postgres