<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 5, 2016 at 5:33 AM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span> wrote:<br><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">Hi Usama,<br>
<br>
I have made some investigations on how pgpool-II 3.4 handles<br>
child_max_connections and am having questions:<br>
<br>
- In child.c there are two places where child_max_connections is handled. Why?<br></blockquote><div><br></div><div>Basically, with the exception manager, The child&#39;s process can exit from the query processing loop in couple of ways, one if the exception is thrown (erepor(ERROR)..) while other is returning from it when the client execution is complete. So child_max_connections logic is handled on both paths.</div><div><br></div><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">
<br>
- The latter place treats the case that child_max_connections reaches<br>
  as &quot;FATAL&quot;. Why? Because this is pretty normal, this should be<br>
  treated as &quot;LOG&quot; (actually the former place treats it as &quot;LOG&quot;), no?<br></blockquote><div><br></div><div>Yes correct. throwing the FATAL error when child_max_connection reaches is a coding mistake. It should be a simple LOG message.</div><div><br></div><div>Thanks</div><div>Best regards</div><div>Muhammad Usama</div><div> </div><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">
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
_______________________________________________<br>
pgpool-hackers mailing list<br>
<a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
</blockquote></div><br></div></div>