<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 &#39;DR Master&#39; get caught up with streaming replication&#39; then bring it up as a read-write node and restart the slons).<br>

<br>
However if you have an unplanned failure of your &#39;master&#39; node the &#39;slave&#39; node might be further ahead via slony than your &#39;dr master&#39; node via async streaming replication.  If this happens and you promote the &#39;DR master&#39; 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 &#39;slave&#39; node never pass master events ahead.</div>
<div><br></div><div>--Raghav</div></div>