Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Postgresql failover scenario, recover only new data

$
0
0

Generally I work on Oracle databases, but for one of our projects I am expected to build Postgresql system with master slave replication.

So far I have successfully built master slave replication and tested failover scenario in Postgresql 9.5. For testing failover, I stopped Postgresql service on master database server, triggered slave database and it started to serve as master database as expected.

After slave database becomes new master, I need to configure former master system as new slave. But in the meantime, since new master will accept transactions synchronizaton between master and slave will be lost. I know I can do a pg_basebackup and copy data to new slave but I do not want to copy the whole data from new master database, I just need the new ones produced after failover.

How can I do that, can anyone please guide me?

Thanks.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>