Demoting master to slave without an rsync...is it safe? - Mailing list pgsql-general

From Chris Redekop
Subject Demoting master to slave without an rsync...is it safe?
Date
Msg-id CAC2SuRKRJB6p1=MpSdifqLX5axWMw1Y8QFHTXKfr9u2E5npv4A@mail.gmail.com
Whole thread Raw
Responses Re: Demoting master to slave without an rsync...is it safe?
List pgsql-general
I have a master+slave set up using asynchronous streaming replication.  If I do a graceful (-fast) shutdown of the master, and then promote the slave to master, my understanding is that I should not have any data loss.  At that point in order to bring the old master back up as a slave the docs say I should do a base-backup etc....however I've found that simply setting recovery_target_timeline='latest' does allow the old master to start back up as a slave, and everything appears to be happy, all data seems to be synced properly.  My question is, is this safe to do?  It's a very attractive option as it removes a significant amount of load from the master server for planned switch-overs (maintenance/upgrades/whatever).  Thanks!

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Query runs in 335ms; function in 100,239ms : date problem?
Next
From: Susan Cassidy
Date:
Subject: Backend process that won't die