<div dir="ltr"><div>Hi</div><div><br></div><div>I think there is a problem in pgpool-II side implementation of pcp_detach_node command. <span style="background:yellow">pcp</span>_detach_node should check if it is allowed to process detach_node command on the particular node before blocking the incoming connections and closing the existing connections.</div><div><br></div><div>This is the problem in the case when gracefully detaching of the node is requested. </div><div><br></div><div>Consider the example, If the pgpool-II is connected to 2 backend nodes. And user asks the pgpool-II to detach node-id 3 </div><div><br></div><div><font face="monospace, monospace">usama@ubuntu: pcp_detach_node -U postgres -g -d 3</font><br></div><div><br></div><div>Now, as node id 3 is not a valid backend node in this situation, The command should immediately return with an error instead it disallows the new incoming connections, close the active connection only to find out the operation is not allowed.</div><div><br></div><div>What are your thoughts on it? Should I go ahead and make this above change?</div><div><br></div><div>Thanks</div><div>Best regards</div><div>Muhammad Usama</div></div>