Re: Replication Across Two Servers?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Replication Across Two Servers?
Date: 2011-11-04 16:11:32
Message-ID: CAOR=d=3FO=qUH+x0Aefucjy58sjD0m1o_PYQLkGoZOxNStX==A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Nov 4, 2011 at 9:59 AM, Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com> wrote:
>
> On Fri, Nov 4, 2011 at 11:56 AM, Prashant Bharucha <prashantbharucha(at)yahoo(dot)ca> wrote:
>>
>> Hi Carlos
>>
>> Use Slony "master to multiple slaves" replication system for PostgreSQL supporting cascading (e.g. - a node can feed another node which feeds another node...) and failover.
>> http://slony.info/
>>
>
> I'm not sure I see the point of using a third party application to do something PostgreSQL can do natively. Am I missing something here?

Whether it's "third party" is immaterial really, the real issue is
what are your requirements and which method best meets those
requirements. For certain more complex replication setups, slony is a
better method. For instance you can create interesting indexes on a
slony slave that are independent of the master, or create views,
materialized or otherwise on a reporting server and so on. While
streaming replication is easier to setup and maintain, and generally a
bit more efficient, it's also got a more limited scope of operation.

Also, if you want to run 8.4 for now, which you've tested against, and
move from 8.4 to 9.1 or 9.2 at a later date, slony is built to do just
that, with running from one major version to another being one of the
things it's really good at.

The real answer then is that it comes down to which meets your
requirements the best. Both are well tested and supported.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2011-11-04 16:15:04 Re: 9.1 replication on different arch
Previous Message David Kerr 2011-11-04 16:01:29 Re: Foreign Keys and Deadlocks