<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 28, 2016 at 4:37 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-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Usama,<br>
<br>
Looks good to me. I think the patch is ready to commit.<br></blockquote><div><br></div><div>Thanks I have committed the patch to the master branch.</div><div><br></div><div>Best regards</div><div>Muhammad Usama</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5"><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>
&gt; Hi<br>
&gt;<br>
&gt; I have modified the patch a little and also included the changes for &quot;show<br>
&gt; pool_nodes&quot;, &quot;show pool_status&quot; and English documentation.<br>
&gt;<br>
&gt; More specifically the changes from the original version are. First, Since<br>
&gt; this is a new feature that will only go out in next pgpool-II major release<br>
&gt; so instead of adding a command line argument in the pcp_node_info for<br>
&gt; displaying the human readable status string, I have included it in the<br>
&gt; standard output of the utility and updated the documentation accordingly.<br>
&gt; Second, As the pgpool admin extension already shows the human readable node<br>
&gt; status so I don&#39;t think we need to touch that.<br>
&gt;<br>
&gt; Suggestions and comments.<br>
&gt;<br>
&gt; Best regards<br>
&gt; Muhammad Usama<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, May 10, 2016 at 8:26 AM, Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; You can either 1) concentrate on working on pcp_node_info and leave<br>
&gt;&gt; the rest of work (i.e. show pool_nodes) to someone else, or 2) take<br>
&gt;&gt; care of all the commands including pcp_node_info and show pool_nodes.<br>
&gt;&gt;<br>
&gt;&gt; Either is fine for me. The choice is up to you.<br>
&gt;&gt;<br>
&gt;&gt; BTW, your coding style is a little bit different from ours. We<br>
&gt;&gt; strictly follow the PostgreSQL style. For example,<br>
&gt;&gt;<br>
&gt;&gt; if (....) {<br>
&gt;&gt;   ....<br>
&gt;&gt; } else {<br>
&gt;&gt;   ....<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; is not a recommended coding style. We prefer followings:<br>
&gt;&gt;<br>
&gt;&gt; if (....)<br>
&gt;&gt; {<br>
&gt;&gt;   ....<br>
&gt;&gt; }<br>
&gt;&gt; else<br>
&gt;&gt; {<br>
&gt;&gt;   ....<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt; --<br>
&gt;&gt; Tatsuo Ishii<br>
&gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; 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>
&gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;<br>
&gt;&gt; &gt; I can agree that keeping things consistent is a good idea. I&#39;m busy this<br>
&gt;&gt; &gt; week, but I should have time next week to code that up. Any other<br>
&gt;&gt; &gt; suggestion you want me to get while I&quot;m doing that, because I don&#39;t<br>
&gt;&gt; think I<br>
&gt;&gt; &gt; have used all the commands. I&#39;ll look though the doc&#39;s to see what I find<br>
&gt;&gt; &gt; as well, but I wanted to ask in case there is something specific you want<br>
&gt;&gt; &gt; me to do.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On May 9, 2016 3:52 AM, &quot;Tatsuo Ishii&quot; &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Hey everybody,<br>
&gt;&gt; &gt;&gt; &gt;   I use pgpool and I noticed that pcp_node_info usually requires that<br>
&gt;&gt; I<br>
&gt;&gt; &gt;&gt; &gt; have the pgpool docs open in order to interpret the output. As a<br>
&gt;&gt; result I<br>
&gt;&gt; &gt;&gt; &gt; would like to propose a &#39;-r --readable&#39; option (-h for human-readable<br>
&gt;&gt; is<br>
&gt;&gt; &gt;&gt; &gt; taken by host). I posted the small patch needed to do this<br>
&gt;&gt; &gt;&gt; &gt; <a href="http://www.pgpool.net/mantisbt/view.php?id=192" rel="noreferrer" target="_blank">http://www.pgpool.net/mantisbt/view.php?id=192</a> . I am willing to do<br>
&gt;&gt; more<br>
&gt;&gt; &gt;&gt; &gt; work on this if it is requested. Let me know what the opinion on this<br>
&gt;&gt; is.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; If we were going to change pcp_node_info, we might want to change other<br>
&gt;&gt; &gt;&gt; places for consistency sake (for example, &quot;show pool_nodes&quot;). What do<br>
&gt;&gt; &gt;&gt; you think?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Best regards,<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Tatsuo Ishii<br>
&gt;&gt; &gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; &gt;&gt; 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>
&gt;&gt; &gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; pgpool-hackers mailing list<br>
&gt;&gt; <a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
&gt;&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div></div>