pg_basebackup on slave running for a long time - Mailing list pgsql-general

From Subhankar Chattopadhyay
Subject pg_basebackup on slave running for a long time
Date
Msg-id CAPg1NnHth-Ck65+2wMPRE2MpSoP4j8UKUVOcA8gPrNQN+Zz7jg@mail.gmail.com
Whole thread Raw
Responses Re: pg_basebackup on slave running for a long time  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
Hi Team,

We have setup PostgreSQL master-slave topology with Streaming
replication setup.
One of the steps for setting up streaming replication is to do
pg_basebackup on slave from master.

For subsequent update of this database, this step is repeated every
time, deleting the existing data copy of slave and running
pg_basebackup again.

For a huge data size of over 500GB, it takes  a lot of time to copy
the data from master to slave.
We were looking for some optimization technique so that it doesnt have
to copy the whole data in every update of the system.

Is there a way to do that? Can somebody throw some light on this?



Subhankar Chattopadhyay
Bangalore, India


pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Feature request: separate logging
Next
From: John R Pierce
Date:
Subject: Re: pg_basebackup on slave running for a long time