<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 6, 2016 at 4:44 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Usama,<br>
<br>
Why do we need &quot;PGPOOL&quot; keyword? It seems to be annoying.<br></blockquote><div><br></div><div>Basically, there are two reasons. First,is there are some configuration parameter names that are same in PostgreSQL and pgpool-II like</div><div>&quot;port&quot;, &quot;log_min_messages&quot;  and many others. So if we use the same syntax without any difference, we would have no way of telling if the command is referring to the pgpool-II or Backend.</div><div><br></div><div>like</div><div>SHOW port;</div><div>This command would be valid for both pgpool-II and PostgreSQL parameter.</div><div><br></div><div>Second, I think it&#39;s good to have distinction in commands for setting/showing GUC and pgpool variables, otherwise it could cause the confusions. </div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc 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>
<div class="HOEnZb"><div class="h5">&gt; Hi<br>
&gt;<br>
&gt; I am currently working on adding the SHOW and SET commands for pgpool-II<br>
&gt; configuration parameter, these commands will allow the user to alter the<br>
&gt; specific pgpool-II configuration parameter values for a user session. More<br>
&gt; or less, these commands will work in similar ways as PostgreSQL&#39;s SET and<br>
&gt; SHOW commands for PostgreSQL&#39;s GUC variables. I have already checked in the<br>
&gt; configuration parameter framework to the pgpool master branch and before I<br>
&gt; push the SET and SHOW command functionality I want the opinion on the<br>
&gt; syntax of these two commands.<br>
&gt;<br>
&gt; I am thinking of using the PG&#39;s syntax with an addition of PGPOOL keyword<br>
&gt; at the start<br>
&gt;<br>
&gt; For example<br>
&gt;<br>
&gt; PostgreSQL uses the following syntax for SHOW and SET command<br>
&gt;<br>
&gt; SHOW variable_name;<br>
&gt; SHOW all;<br>
&gt; SET variable_name to value;<br>
&gt; SET variable_name to DEFAULT;<br>
&gt; ..<br>
&gt;<br>
&gt; And for pgpool variables we can use<br>
&gt;<br>
&gt; PGPOOL SHOW variable_name;<br>
&gt; PGPOOL SHOW all;<br>
&gt; PGPOOL SET variable_name to value;<br>
&gt; PGPOOL SET variable_name to DEFAULT;<br>
&gt; ..<br>
&gt;<br>
&gt; Suggestions and thoughts.<br>
&gt;<br>
&gt; Kind Regards<br>
&gt; Muhammad Usmaa<br>
</div></div></blockquote></div><br></div></div>