<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br></div>
You can use the built-in streaming replication for what you describe but if you want unplanned failover it should be the SYNCHRONOUS replication.<br>
<br>
asynchronous replication will work fine for a controlled switchover (stop the slons, let your 'DR Master' get caught up with streaming replication' then bring it up as a read-write node and restart the slons).<br>
<br>
However if you have an unplanned failure of your 'master' node the 'slave' node might be further ahead via slony than your 'dr master' node via async streaming replication. If this happens and you promote the 'DR master' then you might have a very bad day.<br>
<br>
<br></blockquote><div><br></div><div>Got it. Thanks Steve for all your help.</div><div>I could able to fix this by storepath() function and as you said, I have taken care that 'slave' node never pass master events ahead.</div>
<div><br></div><div>--Raghav</div></div>