<p dir="ltr">Thank you for replying me, and you&#39;re right, I haven&#39;t added the pgpool.pg_ctl configuration directive. <br>
I hate that I missed that part from the docs.</p>
<p dir="ltr">I&#39;m going to look at this when I&#39;m back from vacation next week.</p>
<p dir="ltr">Thanks !</p>
<div class="gmail_quote">On 17 Apr 2014 03:50, &quot;Nozomi Anzai&quot; &lt;<a href="mailto:anzai@sraoss.co.jp">anzai@sraoss.co.jp</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Sorry for the late reply.<br>
<br>
&gt; What am I missing here (?)<br>
&gt; I&#39;ve installed the stuff from sql/pgpool-recovery and sql/pgpool-regclass :<br>
&gt; cd sql/pgpool-recovery<br>
&gt; make<br>
&gt; make install<br>
&gt; psql -f pgpool-recovery.sql template1<br>
&gt; psql -f pgpool-recovery.sql postgres<br>
&gt; cd ../pgpool-regclass<br>
&gt; make<br>
&gt; make install<br>
&gt; psql -f pgpool-regclass.sql template1<br>
&gt; psql -f pgpool-regclass.sql postgres<br>
<br>
These steps seem OK.<br>
<br>
&gt; is there some other sql files, or code / extensions I&#39;ve missed that<br>
&gt; implement the pgpool.pg_ctl configuration parameter (?)<br>
<br>
No, there aren&#39;t more sql files.<br>
But I wonder if you mean &quot;pgpool.pg_ctl&quot; parameter might be added<br>
automatically (by sql file, etc.)?  This parameter is the one the user<br>
has to add by himself.<br>
<br>
&quot;Configuring pgpool.pg_ct&quot;:<br>
<a href="http://www.pgpool.net/docs/latest/pgpool-en.html#install_functions" target="_blank">http://www.pgpool.net/docs/latest/pgpool-en.html#install_functions</a><br>
<br>
| The function pgpool_pgctl executes the command whose path is specified<br>
| by &quot;pgpool.pg_ctl&quot; in postgresql.conf. To use this function, you have<br>
| to specify this parameter.<br>
| ----<br>
| ex)<br>
| $ cat &gt;&gt; /usr/local/pgsql/postgresql.conf<br>
| pgpool.pg_ctl = &#39;/usr/local/pgsql/bin/pg_ctl&#39;<br>
|<br>
| $ pg_ctl reload -D /usr/local/pgsql/data<br>
| ----<br>
<br>
<br>
&gt; looking at <a href="http://git.postgresql.org/gitweb/?p=pgpooladmin.git;a=commit;h=9cf159246892e3388b36f4b43cccc0c62e54a29f" target="_blank">http://git.postgresql.org/gitweb/?p=pgpooladmin.git;a=commit;h=9cf159246892e3388b36f4b43cccc0c62e54a29f</a><br>

&gt; , I&#39;m not sure if that check work .<br>
&gt; The buttons are greyed out for me ( see previous attached screendump)<br>
&gt; , but as far as I understand I am superuser.<br>
&gt; I&#39;m logged in as postgres, and as far as I know pgpooladmin connects<br>
&gt; to the postgres servers as postgres user, which is superuser .<br>
&gt;<br>
&gt; I removed the || $is_superuser !== &#39;yes&#39; from<br>
&gt; templates/elements/status_pgsql_buttons.tpl , then I can use the<br>
&gt; buttons .<br>
&gt;<br>
&gt; Now when I press f.example &#39;stop&#39; button in pgpooladmin status screen,<br>
&gt; she postgres server logs:<br>
&gt;<br>
&gt; ERROR:  unrecognized configuration parameter &quot;pgpool.pg_ctl&quot;<br>
&gt; 16716 2014-04-09 14:48:16 CEST STATEMENT:  SELECT pgpool_pgctl(&#39;stop&#39;, &#39;f&#39;)<br>
&gt;<br>
&gt; What am I missing here (?)<br>
&gt; I&#39;ve installed the stuff from sql/pgpool-recovery and sql/pgpool-regclass :<br>
&gt; cd sql/pgpool-recovery<br>
&gt; make<br>
&gt; make install<br>
&gt; psql -f pgpool-recovery.sql template1<br>
&gt; psql -f pgpool-recovery.sql postgres<br>
&gt; cd ../pgpool-regclass<br>
&gt; make<br>
&gt; make install<br>
&gt; psql -f pgpool-regclass.sql template1<br>
&gt; psql -f pgpool-regclass.sql postgres<br>
&gt;<br>
&gt; is there some other sql files, or code / extensions I&#39;ve missed that<br>
&gt; implement the pgpool.pg_ctl configuration parameter (?)<br>
&gt;<br>
&gt; regards<br>
&gt; Joar<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt; From: Joar Jegleim &lt;<a href="mailto:joar.jegleim@gmail.com">joar.jegleim@gmail.com</a>&gt;<br>
&gt; Date: 9 April 2014 11:18<br>
&gt; Subject: Fwd: pgpooladmin start / stop / restart buttons greyed out<br>
&gt; To: <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt;<br>
&gt;<br>
&gt; I got the promote button to work after looking at the pcp_promoet_node<br>
&gt; command + <a href="http://lists.pgfoundry.org/pipermail/pgpool-hackers/2011-January/000544.html" target="_blank">http://lists.pgfoundry.org/pipermail/pgpool-hackers/2011-January/000544.html</a><br>
&gt; So I setup :<br>
&gt; follow_master_command = &#39;/usr/local/sbin/failover.sh %d &quot;%h&quot; %p %D %m<br>
&gt; %M &quot;%H&quot; %P&#39;<br>
&gt;<br>
&gt; and now, when I push &#39;promote&#39; the current primary is disconnected,<br>
&gt; and the standby is promoted to master .<br>
&gt; For manual promotoion I&#39;d also like the old master to simply be<br>
&gt; remoted to standby and deliver read requests, I&#39;ll look into that .<br>
&gt;<br>
&gt; But I&#39;d still like to figure out how to enable those start / stop etc.<br>
&gt; buttons from pgpool admin interface<br>
&gt;<br>
&gt; regards<br>
&gt; jj<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt; From: Joar Jegleim &lt;<a href="mailto:joar.jegleim@gmail.com">joar.jegleim@gmail.com</a>&gt;<br>
&gt; Date: 9 April 2014 10:47<br>
&gt; Subject: pgpooladmin start / stop / restart buttons greyed out<br>
&gt; To: <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt;<br>
&gt;<br>
&gt; Hi list,<br>
&gt;<br>
&gt; I&#39;m building a 2 node postgres streamin replication cluster with<br>
&gt; pgpool in front .<br>
&gt; I&#39;ve followed the howto at<br>
&gt; <a href="http://www.pgpool.net/pgpool-web/contrib_docs/simple_sr_setting2_3.3/index.html" target="_blank">http://www.pgpool.net/pgpool-web/contrib_docs/simple_sr_setting2_3.3/index.html</a><br>
&gt;<br>
&gt; I&#39;m using postgres 9.3 and got pgpool 3.3.2 and pgpoolAdmin 3.3.1<br>
&gt;<br>
&gt; the stop/start/reload/remove buttons in the status page are grey&#39;ed<br>
&gt; out and can&#39;t be used.<br>
&gt; How do I enable those ?<br>
&gt;<br>
&gt; And I can&#39;t seem to figure out how the &#39;promote&#39; button is supposed to work ...<br>
&gt; At first I reckoned that pressing the promote button would promote<br>
&gt; standby -&gt; master, and demote master to standby.<br>
&gt;<br>
&gt; When I press the &#39;promote&#39; button, the master node disconnects, but<br>
&gt; the standby is not promoted to master .<br>
&gt; I struggle to figure out where to debug this &#39;cause I don&#39;t see<br>
&gt; anything happening in any logs either.<br>
&gt;<br>
&gt; Does anybody have the same problem ? or could somebody walk me through<br>
&gt; the process of what&#39;s happening when I push the &#39;promote&#39; button, e.g.<br>
&gt; is it the &#39;failover.sh&#39; script that is called first ?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ----------------------<br>
&gt; Joar Jegleim<br>
&gt; Homepage: <a href="http://cosmicb.no" target="_blank">http://cosmicb.no</a><br>
&gt; Linkedin: <a href="http://no.linkedin.com/in/joarjegleim" target="_blank">http://no.linkedin.com/in/joarjegleim</a><br>
&gt; fb: <a href="http://www.facebook.com/joar.jegleim" target="_blank">http://www.facebook.com/joar.jegleim</a><br>
&gt; AKA: CosmicB @Freenode<br>
&gt;<br>
&gt; ----------------------<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ----------------------<br>
&gt; Joar Jegleim<br>
&gt; Homepage: <a href="http://cosmicb.no" target="_blank">http://cosmicb.no</a><br>
&gt; Linkedin: <a href="http://no.linkedin.com/in/joarjegleim" target="_blank">http://no.linkedin.com/in/joarjegleim</a><br>
&gt; fb: <a href="http://www.facebook.com/joar.jegleim" target="_blank">http://www.facebook.com/joar.jegleim</a><br>
&gt; AKA: CosmicB @Freenode<br>
&gt;<br>
&gt; ----------------------<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ----------------------<br>
&gt; Joar Jegleim<br>
&gt; Homepage: <a href="http://cosmicb.no" target="_blank">http://cosmicb.no</a><br>
&gt; Linkedin: <a href="http://no.linkedin.com/in/joarjegleim" target="_blank">http://no.linkedin.com/in/joarjegleim</a><br>
&gt; fb: <a href="http://www.facebook.com/joar.jegleim" target="_blank">http://www.facebook.com/joar.jegleim</a><br>
&gt; AKA: CosmicB @Freenode<br>
&gt;<br>
&gt; ----------------------<br>
<br>
<br>
--<br>
Nozomi Anzai<br>
SRA OSS, Inc. Japan<br>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div>