archive_command and streaming replication

From: Scott Briggs <scott(dot)br(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: archive_command and streaming replication
Date: 2012-05-15 21:40:31
Message-ID: CADKfymHjBa9=edv1z8qh8G9o44iA2WNcRMNuowqj90djL+Y9Pg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, can someone please explain the purpose of archive_command on both
the master and slave when it comes to streaming replication? From
what I understand so far, what really matters is how many pg_xlog
files are kept when it comes to reestablishing replication when it
breaks for some reason.

Let's say I shutdown one slave to create a second slave by copying all
the files to that new slave. If I want to guarantee that the original
slave is able to reestablish replication, I just need to make sure
that the master keeps enough pg_xlog files (defined by the setting
"checkpoint_segments") around in order for that to happen (especially
in the event that the database is large).

Thanks,
Scott

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert James 2012-05-15 21:44:35 Re: Disadvantage to CLUSTER?
Previous Message Steve Crawford 2012-05-15 21:27:46 Re: Disadvantage to CLUSTER?