<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.ydp185476a9yiv0998764849msonormal, li.ydp185476a9yiv0998764849msonormal, div.ydp185476a9yiv0998764849msonormal
        {mso-style-name:ydp185476a9yiv0998764849msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EstiloCorreo18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>When the master fails, repmgr promotes new master and then pgpool can detect the new master.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Regards.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>De:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> Pierre Timmermans [mailto:ptim007@yahoo.com] <br><b>Enviado el:</b> jueves, 1 de junio de 2017 11:49 a. m.<br><b>Para:</b> Lazaro Garcia; 'Avi Weinberg'; pgpool-general@pgpool.net<br><b>Asunto:</b> Re: [pgpool-general: 5550] Re: Server to never assume the role of master<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>Avi,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>It is true that pgpool will not execute the follow master script on your slave if it is unknown of pgppol but on the other hand, in the failover script you can do what you want. In your case you could ssh to your permanent slave (which is not known to pgpool) and execute the postgres command to follow the new master.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>Lazara,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>Is it possible to use pgpool for load balancing and repmgrd for automatic failover ? I could not understand how to make this work. Is it enough to leave the pgpool configurations for failover script and follow_master script empty ? Is pgpool going to automatically detect that there is a new master and restart the child processes ?<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'>Pierre<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div id="ydp185476a9yahoo_quoted_6688933274"><div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>On Thursday, June 1, 2017, 3:29:50 PM GMT+2, Lazaro Garcia &lt;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><a href="mailto:lazaro3487@gmail.com"><span lang=EN-US>lazaro3487@gmail.com</span></a></span><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&gt; wrote:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p>&nbsp;</o:p></span></p></div><div><div id=ydp185476a9yiv0998764849><div><div><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>For that you can use repmgr for controlling the replica, promoting new master, and follow the slaves to new master and pgpool for load balancing, and HA of the cluster.</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>Regards.</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><div id=ydp185476a9yiv0998764849yqt29025><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=ydp185476a9yiv0998764849msonormal><b><span style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>De:</span></b><span style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'> <a href="mailto:pgpool-general-bounces@pgpool.net">pgpool-general-bounces@pgpool.net</a> [<a href="mailto:pgpool-general-bounces@pgpool.net">mailto:pgpool-general-bounces@pgpool.net</a>] <b>En nombre de </b>Avi Weinberg<br><b>Enviado el:</b> jueves, 1 de junio de 2017 09:09 a. m.<br><b>Para:</b> <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br><b>Asunto:</b> [pgpool-general: 5548] Re: Server to never assume the role of master</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p></div></div><p class=ydp185476a9yiv0998764849msonormal><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;<o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>Hi,</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>Thanks for the quick reply!&nbsp; </span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>I think it will not be that simple in my case since I want the &quot;permanent slave&quot; server to point to the new master when there is a failover.&nbsp; In case of a failover I want the &quot;permanent slave&quot; to be notified even if the other &quot;non-permanent&quot; slave is dead</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>I doubt it can achieved without pgpool knowing about the permanent slave? &nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>Thanks</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>Avi</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=ydp185476a9yiv0998764849msonormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Helvetica","sans-serif";color:#26282A'> PVY [<a href="mailto:balroga3@yandex.ru" target="_blank">mailto:balroga3@yandex.ru</a>] <br><b>Sent:</b> Thursday, June 01, 2017 2:45 PM<br><b>To:</b> Avi Weinberg &lt;<a href="mailto:AviW@gilat.com" target="_blank">AviW@gilat.com</a>&gt;<br><b>Cc:</b> <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br><b>Subject:</b> Re: [pgpool-general: 5546] Server to never assume the role of master</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p></div></div><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>Hello, Avi.<br><br>As far as I understand, if replication is configured on postgresql side, not via pgpool, then you can simply do not add this particular slave server to pgpool.conf.<br>In this case pgpool would not know about this slave and it will never promote it or send queries to it.</span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0><tr><td width=2 style='width:1.5pt;background:blue;padding:.75pt .75pt .75pt .75pt'></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=ydp185476a9yiv0998764849msonormal><span style='font-size:11.0pt'>Hi all,<br><br>I would like to have a master with two slaves setup. &nbsp;However, I want one of the servers to always be slave and never assume the role of master. &nbsp;Even more so, I would pgpool not to direct any queries to this &quot;permanent slave&quot; server.<br>How do I configure pgpool / postgres to achieve this<br><br>Thanks<br>Avi<br></span><span style='font-size:10.0pt'>IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you should not copy or use this e-mail for any purpose nor disclose its contents to any person. </span><o:p></o:p></p></td></tr></table><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><br><br><br><br><i>-- <br>Best regards,<br>PVY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</i><a href="mailto:balroga3@yandex.ru" target="_blank">mailto:balroga3@yandex.ru</a></span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p><p class=ydp185476a9yiv0998764849msonormal><span lang=EN-US style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you should not copy or use this e-mail for any purpose nor disclose its contents to any person. </span><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'><o:p></o:p></span></p></div></div></div></div><div id=ydp185476a9yqt33202><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif";color:#26282A'>_______________________________________________<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><o:p></o:p></span></p></div></div></div></div></div></div></body></html>