Re: Replication - doubts

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Jayadevan M *EXTERN*" <jayadevan(dot)maymala(at)ibsplc(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Replication - doubts
Date: 2012-10-17 07:52:22
Message-ID: D960CB61B694CF459DCFB4B0128514C20890253F@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jayadevan M wrote:
> I went through the documentation on replication. and am trying to
understand the various options
> available.
>
> Does replication available in PostgreSQL always use WAL (i.e
irrespective of whether it is
> synchronous/asynchronous, whether it is using archived logs or 'live'
logs or streaming)?

Yes as far as replication solutions included in core are concerned.

There are other replication solutions (like Slony) using triggers.

> I understand that we can use WALs in 3 modes
>
> 1) Use the archived WALs - results in the slave being
significantly behind the master. This is
> set up using the archive_command
>
> 2) Use entire WAL segments

I am not sure what the difference between 1) and 2) is.
There will be a significant lag, yes.

> 3) Use 'streaming' , i.e. use WAL files before they are complete
- in this case the slave is
> almost uptodate

Right.

> If I set up a slave using the archived WAls and set hot_standby on in
the slave, will I be able to
> read from the slave?

Yes.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2012-10-17 08:02:05 Re: help for this situation
Previous Message Albe Laurenz 2012-10-17 07:47:22 Re: Streaming replication failed to start scenarios