<div dir="ltr">Hi,<div><br></div><div><b style="font-size:12.8px"><font size="4" color="#000000" style="background-color:rgb(255,255,0)">using postgresql 9.3.1 and pgpool 3.4.2</font></b><br></div><div><br><div>I have an manager application (C++ based) which is checking the pgpool server (show pool_nodes; ) every 20ms.</div><div><br></div><div>one of its operations is to perform a switchover between the postgres nodes in case of a user demand!</div><div><br></div><div>while performing pcp_detach_node (via pgpool sql admin):</div><div>1. <span style="background-color:rgb(234,153,153)">all the  pgool connections (356 connections from my application to the pgpool ) gets dropped.</span></div><div>2.<span style="background-color:rgb(234,153,153)"> the &#39;show pool_nodes&#39; connection gets dropped and the only way to connect to the pgpool is to <b>reestablish a new connection</b>!</span></div><div><br></div><div>I&#39;m detaching via:</div><div><b><span style="font-size:12.8px">select pcp_detach_node(0,False,&#39;192.</span><span style="font-size:12.8px">168.15.59&#39;,500,9898,&#39;user&#39;,&#39;</span><span style="font-size:12.8px">pass&#39;);</span></b><br></div><div><br></div><div><br></div><div>this is an cli example which demonstrate this issue:</div><div><br></div><div><div><font color="#0000ff">postgres=# show pool_nodes;</font></div><div><font color="#0000ff"> node_id | hostname | port | status | lb_weight |  role</font></div><div><font color="#0000ff">---------+----------+------+--------+-----------+---------</font></div><div><font color="#0000ff"> 0       | 1.1.1.55 | 5432 | 2      | 0.500000  | standby</font></div><div><font color="#0000ff"> 1       | 1.1.1.56 | 5432 | 2      | 0.500000  | primary</font></div><div><font color="#0000ff">(2 rows)</font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff"><br></font></div><div><div><font color="#ff9900">[root@mgrdb-56 ~]# pcp_detach_node -d 10 192.168.15.59 9898 username upass 0</font></div><div><font color="#ff9900">DEBUG: send: tos=&quot;R&quot;, len=44</font></div><div><font color="#ff9900">DEBUG: recv: tos=&quot;r&quot;, len=21, data=AuthenticationOK</font></div><div><font color="#ff9900">DEBUG: send: tos=&quot;D&quot;, len=6</font></div><div><font color="#ff9900">DEBUG: recv: tos=&quot;d&quot;, len=20, data=CommandComplete</font></div><div><font color="#ff9900">DEBUG: send: tos=&quot;X&quot;, len=4</font></div></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff">postgres=# show pool_nodes;</font></div><div><font color="#0000ff">The connection to the server was lost. Attempting reset: Succeeded.</font></div><div><br></div><div><br></div><div><font color="#0000ff">postgres=# show pool_nodes;</font></div><div><font color="#0000ff"> node_id | hostname | port | status | lb_weight |  role</font></div><div><font color="#0000ff">---------+----------+------+--------+-----------+---------</font></div><div><font color="#0000ff"> 0       | 1.1.1.55 | 5432 | 3      | 0.500000  | standby</font></div><div><font color="#0000ff"> 1       | 1.1.1.56 | 5432 | 2      | 0.500000  | primary</font></div></div><div><font color="#0000ff"><br></font></div><div>Can you please advice....</div></div><div><br></div><div>Thanks,</div><div>Shay C</div></div>