Re: Looking for way to replicate master db to multiple mobile databases

Поиск
Список
Период
Сортировка
От Bryan Montgomery
Тема Re: Looking for way to replicate master db to multiple mobile databases
Дата
Msg-id ba6ead980909231500u530d99b5n37de42db697a4e6c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Looking for way to replicate master db to multiple mobile databases  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: Looking for way to replicate master db to multiple mobile databases  (Sam Mason <sam@samason.me.uk>)
Список pgsql-general
Thanks for the reply. This is a one way push to the slaves. In theory, there shouldn't be any conflicts .... although I wouldn't swear to that. If there's a conflict, the master db should win. At the moment we just drop the tables, recreate the schema and reload the tables. However, some of the large tables literally take hours across the network, for maybe a few dozen changes.

On Wed, Sep 23, 2009 at 4:58 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
On Wed, Sep 23, 2009 at 11:11 AM, Bryan Montgomery <monty@english.net> wrote:
> Hi,
> I'm looking for a way to replicate am master database to multiple (100+)
> databases that are taken in to the field. Currently for each laptop we dump
> and load the tables. However,there is only a small percentage of data that
> changes on a frequent basis.
>
> I've been looking around and come across pyerplica, londiste and bucardo -
> the documentation on most of these is fairly sparse. It seems that Bucardo
> may be the best bet - at least initially.
>
> However, I thought I'd see if anyone is doing something similar and what
> thoughts there might be out there as to a better way to accomplish this.

The problem domain you're working on is a bit different from regular
replication.  Most replication solutions are made to keep two machines
that talk to each other all the time in sync.  Disconnect one machine
and maybe replication will resume properly, and maybe it wont.

So, do you need the slave databases to be updatable?  Do you need the
changes to go back into the master?  Do you need conflict resolution?
Depending on the full fleshed out requirements, you may be stuck
writing your own solution, or re-writing one somebody already wrote.

В списке pgsql-general по дате отправления:

Предыдущее
От: Mihail Nasedkin
Дата:
Сообщение: pg_toast record in table pg_class
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Looking for way to replicate master db to multiple mobile databases