Re: Streaming Rep 101 questions

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Streaming Rep 101 questions
Date: 2011-02-02 16:17:59
Message-ID: AANLkTikYXZ62Ae7utB2_Gcw6Y1v_RgahnbhETJL2HHNB@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 2, 2011 at 16:52, Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com> wrote:
> Hi:
>
>
> I'm going to be experimenting with streaming replication using v9.0.1.  Here
> are a few questions I have at the onset...

You should use 9.0.3

> 1) Is it possible to replicate one database out of many that exist in the DB
> instance?  Or do you have to replicate them all?

No, you must do all.

> 2) Is replication transaction based?  That is to say, does the act of
> replicating a transaction wait until the commit on the server side?

Yes, it's transaction based, in the sense that it's transactionally
safe. No, you don't have to wait until commit on the slave side (which
I assume you mean). THat's sync rep, which is hopefully going to be an
option in 9.1.

> 3) I will be replicating to a DB server 2 timezones away initially, but
> perhaps from the US-> India at some future point.  Is the PG replication
> solution meant to do something like this (given sufficient bandwidth of
> course)?

Should work fine. As long as the connection is reasonably reliable
(doesn't go up and down every minute), a bit of latency shouldn't be a
problem.

> 4) The slave DB instance will also be v9.0.1 on linux, but it wil be a
> virtual machine.  Do you see any problem with that?

None other than potential performance issues if it's too slow.

> 5) Is there a step-by-step "how to" document for this?

http://wiki.postgresql.org/wiki/Binary_Replication_Tutorial

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-02-02 16:24:15 Re: Streaming Rep 101 questions
Previous Message Francisco Figueiredo Jr. 2011-02-02 16:11:46 Re: "could not accept SSPI security context"