Re: peer-to-peer replication with Postgres

Поиск
Список
Период
Сортировка
От Mike Christensen
Тема Re: peer-to-peer replication with Postgres
Дата
Msg-id AANLkTilrBZ69QP6uAGPrh2sxzjxxxXNvMDBIN3EWRDX7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: peer-to-peer replication with Postgres  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: peer-to-peer replication with Postgres  (Scott Marlowe <scott.marlowe@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: How to do pg_dump + pg_restore within Perl script?
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: peer-to-peer replication with Postgres