<div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div dir="ltr" style="font-family:arial;font-size:small"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
Hi</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">pgpool-II does not assumes backend0 to be a primary node by default. </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">It searches for the primary node at starts up time, and at primary node failure. </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Can you please share some more details regarding which version of pgpool-II you are using and also share the </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">pgpool.conf and pgpool-II log files.</span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
 </div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>I have 3 postgres nodes in streaming replication mode with two pgpools in active -stanby configuration.</div><div><br></div><div>Is my observation right that pgpool always looks at backend0 as the master ? Supposing there is a failure in backend0 and backend1 is promoted as the new master. In this case if we are able to fix backend0 and attach it back as the slave of the new master (backend1), pgpool still assumes that backend0 is the master and tries to write to it. Is there a configuration setting to tell pgpool that backend0 is a slave and backend1 is a master ?</div>
</div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks in advance for your help.</div>
<div><br></div><div>- Santosh</div></div><br>_______________________________________________<br>pgpool-general mailing list<br><a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br><a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a></blockquote>
<div> </div><div>--Usama </div></div></div></div></div></div>