<div dir="ltr">Or probably this one? :)<br><br>* Fix to output error message when if_up_cmd fails. (Yugo Nagata) [3.3]<br>
<br>
  This is suggested by Sergey Arlashin in [pgpool-general: 2457].<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 7, 2014 at 2:05 PM, Alexandru Cardaniuc <span dir="ltr">&lt;<a href="mailto:cardaniuc@gmail.com" target="_blank">cardaniuc@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is it related to the following?<div class=""><br>* Fix to output error message when wd_escalation_command fails with exit<br>

  code other than 0 (Yugo Nagata) [3.3]<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 12:08 AM, Yugo Nagata <span dir="ltr">&lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Tue, 25 Mar 2014 00:18:07 -0700<br>
Alexandru Cardaniuc &lt;<a href="mailto:cardaniuc@gmail.com" target="_blank">cardaniuc@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Also, with version 3.3.2 when I would bring pgpool down on the primary node<br>
&gt; and watchdog would bring delegate_IP up on the secondary node I would see<br>
&gt; in the pgpool.log:<br>
&gt;<br>
&gt; 2014-03-25 06:27:31 LOG:   pid 6974: wd_escalation: escalated to master<br>
&gt; pgpool successfully<br>
&gt;<br>
&gt; And the delegate_IP will be up correctly.<br>
&gt;<br>
&gt; Now with version 3.3.3 when that same thing happens, I get in pgpool.log:<br>
&gt;<br>
&gt; 2014-03-25 05:11:58 LOG:   pid 13889: wd_escalation: escalating to master<br>
&gt; pgpool<br>
&gt; 2014-03-25 05:11:58 DEBUG: pid 13889: exec_ifconfig: wait() failed at<br>
&gt; errno: 10<br>
&gt; 2014-03-25 05:11:58 ERROR: pid 13889: wd_IP_up: ifconfig up failed<br>
&gt; 2014-03-25 05:11:58 DEBUG: pid 13889: wd_declare: send the packet to<br>
&gt; declare the new master<br>
&gt; 2014-03-25 05:11:58 LOG:   pid 13889: wd_escalation: escalated to master<br>
&gt; pgpool with some errors<br>
&gt;<br>
&gt; But when I check with ifconfig, the delegate_IP was properly brought up<br>
&gt; with ifconfig. Is that a new bug with pgpool 3.3.3?<br>
<br>
</div>Errors if_cmd_up command are checked in 3.3.3. However, wait()&#39;s error of<br>
errno:10 (ECHILD) migth have to be ignored. I&#39;ll see detail and fix it.<br>
<div><div><br>
&gt;<br>
&gt;<br>
&gt; I am not subscribed to pgpool-hackers, so if you respond, please include<br>
&gt; pgpool-general as well.<br>
&gt;<br>
&gt; Sincerely,<br>
&gt; Alexandru<br>
&gt;<br>
&gt; On Mon, Mar 24, 2014 at 8:49 PM, Alexandru Cardaniuc &lt;<a href="mailto:cardaniuc@gmail.com" target="_blank">cardaniuc@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; Looks like there is a typo in pgpool.spec file.<br>
&gt; &gt;<br>
&gt; &gt; When building:<br>
&gt; &gt; + ./configure --build=x86_64-redhat-linux-gnu<br>
&gt; &gt; --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu<br>
&gt; &gt; --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin<br>
&gt; &gt; --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share<br>
&gt; &gt; --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec<br>
&gt; &gt; --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man<br>
&gt; &gt; --infodir=/usr/share/info --with-pgsql-includedir=/usr/pgsql-8.4/include/<br>
&gt; &gt; --with-pgsql-lib=/usr/pgsql-8.4/lib --disable-static --with-pam<br>
&gt; &gt; --disable-rpath --sysconfdir=/etc/pgpool-II/<br>
&gt; &gt; configure: WARNING: unrecognized options: --with-pgsql-lib<br>
&gt; &gt;<br>
&gt; &gt; Instead of:<br>
&gt; &gt; %build<br>
&gt; &gt; %configure --with-pgsql-includedir=%{pghome}/include/ \<br>
&gt; &gt;            --with-pgsql-lib=%{pghome}/lib \<br>
&gt; &gt;            --disable-static --with-pam --disable-rpath \<br>
&gt; &gt;            --sysconfdir=%{_sysconfdir}/pgpool-II/<br>
&gt; &gt;<br>
&gt; &gt; Should be:<br>
&gt; &gt; %build<br>
&gt; &gt; %configure --with-pgsql-includedir=%{pghome}/include/ \<br>
&gt; &gt;            --with-pgsql-libdir=%{pghome}/lib \<br>
&gt; &gt;            --disable-static --with-pam --disable-rpath \<br>
&gt; &gt;            --sysconfdir=%{_sysconfdir}/%{name}/<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Mar 24, 2014 at 4:15 PM, Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Pgpool Global Development Group is pleased to announce the availability<br>
&gt; &gt;&gt; of pgpool-II 3.3.3, 3.2.8, 3.1.11, 3.0,15, and pgpoolAdmin 3.3.1. These<br>
&gt; &gt;&gt; are the latest stable minor versions of each major versions of pgpool-II.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; You can download the source code, installer, RPMs from:<br>
&gt; &gt;&gt; <a href="http://pgpool.net/mediawiki/index.php/Downloads" target="_blank">http://pgpool.net/mediawiki/index.php/Downloads</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ===============================================================================<br>
&gt; &gt;&gt; pgpool-II 3.3.3, 3.2.8, 3.1.11, 3.0,15<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ===============================================================================<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * installer: Fix bug that install of pgpool-II RPM fails (Yugo Nagata)<br>
&gt; &gt;&gt;   [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * installer: Fix to set up passwordless SSH from apache@localhost to<br>
&gt; &gt;&gt;   postgres@localhost (Yugo Nagata) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix bug that restarted pgpool&#39;s watchdog status is regarded as down<br>
&gt; &gt;&gt;   (Yugo Nagata) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * doc: Add mention about &quot;listen queue&quot; and how to increase the &quot;backlog&quot;<br>
&gt; &gt;&gt;   in the num_init_children section. (Tatsuo Ishii) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix bug that watchdog status goes down even when only one of trusted<br>
&gt; &gt;&gt;   servers get unpingable (Yugo Nagata) [3.3][3.2]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix bad performance of unlogged tables detection code. (Tatsuo Ishii)<br>
&gt; &gt;&gt;   [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Pointed out at [pgpool-hackers: 435][[pgpool-general:2325].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix primary node detection logic. (Tatsuo Ishii) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   There&#39;s a possibility that primary node is not detected. This happens<br>
&gt; &gt;&gt;   in following situation.  node 0: primary, node 1: standby. Node 0 goes<br>
&gt; &gt;&gt;   down. Health checking detects the fact but local status is not updated<br>
&gt; &gt;&gt;   yet. Primary node finding (find_primary_node) runs. Node 0&#39;s status is<br>
&gt; &gt;&gt;   yet healthy. Because find_primary_node fails to connect to node 0, it<br>
&gt; &gt;&gt;   immediately returns -1 and fails to find that fact that node 1 is now<br>
&gt; &gt;&gt;   primary.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Fix is just continuing to look for primary node when fails to connect<br>
&gt; &gt;&gt;   to a node.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Per [pgpool-general: 2409].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Add raw mode support to pgpool_setup. (Tatsuo Ishii) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * test: Integrate jdbc test to regression test. (Tatsuo Ishii) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix jdbc DML fails when operated in raw mode and auto commit is off.<br>
&gt; &gt;&gt;   (Tatsuo Ishii) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   This is reported in bug #92.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix to output error message when wd_escalation_command fails with exit<br>
&gt; &gt;&gt;   code other than 0 (Yugo Nagata) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   This is suggested by Sergey Arlashin in [pgpool-general: 2457].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * test: Add new regression test for query cache. (Tatsuo Ishii) [3.3][3.2]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix query cache bug with extended protocol. (Tatsuo Ishii) [3.3][3.2]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   SELECT retrieves outdated cache even DML was executed in an expilicit<br>
&gt; &gt;&gt;   transaction. The bug had been there since in memory query cache was<br>
&gt; &gt;&gt;   born. Per [pgpool-general-jp: 1252].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Add missing entries &quot;relcache_size&quot; and &quot;check_temp_table&quot; to show<br>
&gt; &gt;&gt;   pool_status (Tatsuo Ishii) [3.3][3.2]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix to output error message when if_up_cmd fails. (Yugo Nagata) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   This is suggested by Sergey Arlashin in [pgpool-general: 2457].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Avoid to send queries to unrelated nodes in streaming replication mode.<br>
&gt; &gt;&gt;   (Tatsuo Ishii) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Pgpool-II sends certain queries, such as BEGIN, END and SET commands to<br>
&gt; &gt;&gt;   all of DB nodes. However in streaming replication mode, only primary<br>
&gt; &gt;&gt;   node and at most one standby node are only concerned (if primacy node<br>
&gt; &gt;&gt;   is selected as the load balance node, only 1 node is concerned).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   See [pgpool-hackers: 464] for more details.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix possible buffer overrun problem and memory leak. (Tatsuo Ishii)<br>
&gt; &gt;&gt;   [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Per Coverity 1111465 and 1111482.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix possible buffer overrun. (Tatsuo Ishii) [3.3][3.2][3.1]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Replace strcpy() with strlcpy(). Per Coverity report 1111478, 1111480,<br>
&gt; &gt;&gt;   1111481.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Add dubug messages for analyzing errors in if_up_cmd (Yugo Nagata)<br>
&gt; &gt;&gt;   [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix freeing NULL. (Tatsuo Ishii) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Per Coverity 1111384.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Do not enable query cache on materialized views. (Tatsuo Ishii)<br>
&gt; &gt;&gt;   [3.3][3.2]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Per bug #95.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix memory leak. (Tatsuo Ishii) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Per Coverity 1111446.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix a segmentation fault in parallel mode with system_db_hostname is<br>
&gt; &gt;&gt;   empty (Yugo Nagata) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix to output debug messages in processing pgpool.conf with -d option<br>
&gt; &gt;&gt;   (Yugo Nagata) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Previously, some debug messages in pool_get_config() ware not output<br>
&gt; &gt;&gt;   even when -d option was used.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix JDBC exception of prepared statement including now() in<br>
&gt; &gt;&gt;   replication mode (Yugo Nagata) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   With JDBC, when a prepared statement is executed more than<br>
&gt; &gt;&gt;   PrepareThreshold times, the statement is named and Describe message<br>
&gt; &gt;&gt;   is sent after Parse. With named statement, pgpool rewrite now() to<br>
&gt; &gt;&gt;   parameter in replication mode. Hence, rewritten query has additonal<br>
&gt; &gt;&gt;   parameter than original. In this case, ParameterDescription message<br>
&gt; &gt;&gt;   sent to frontend (response of Describe) should include OIDs of the<br>
&gt; &gt;&gt;   same number os original query&#39;s parameters. Otherwize, JDBC throws<br>
&gt; &gt;&gt;   ArrayIndexoutOfBoundsException.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   This is reported in [pgpool-general-jp: 1192].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix backend error of prepared statement about table which has<br>
&gt; &gt;&gt;   column whoes default value is now() in replication mode (Yugo Nagata)<br>
&gt; &gt;&gt;    [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   When pgpool parses a named prepared statement with default now(),<br>
&gt; &gt;&gt;   timestamps are replaced to additional parameters. So, Bind message also<br>
&gt; &gt;&gt;   should inclued additional parameter format codes. However, when the<br>
&gt; &gt;&gt;   number of original parameter was one, pgpool didn&#39;t handle this. This<br>
&gt; &gt;&gt;   caused a error like &quot;incorrect binary data format in bind parameter 2&quot;.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * test: Fix a bug of regression test of JDBC that shows OK even when<br>
&gt; &gt;&gt;   this fails (Yugo Nagata) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * test: Add a new regression test for JDBC&#39;s PrepareThreshold<br>
&gt; &gt;&gt;  (Yugo Nagata) [3.3]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * doc: Add description about parallel mode doesn&#39;t support PREPARE<br>
&gt; &gt;&gt;  (Yugo Nagata) [3.3][3.2][3.1][3.0]<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Per bug #93<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ===============================================================================<br>
&gt; &gt;&gt; pgpoolAdmin 3.3.1<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ===============================================================================<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix a bug that watchdug status is shown as &quot;Unknown&quot; when it&#39;s &quot;Down&quot;<br>
&gt; &gt;&gt; (Yugo Nagata)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix a bug that restart of PostgreSQL doesn&#39;t work (Yugo Nagata)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix to get properly if the login user is a super user or not on backend<br>
&gt; &gt;&gt;   nodes. (Nozomi Anzai)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   This problem could be occured especially when he isn&#39;t a super user.<br>
&gt; &gt;&gt;   Per [pgpool-general: 2340].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; * Fix that pgpool_pgctl can be executed only when the login user is super<br>
&gt; &gt;&gt;   user in backend nodes.(Nozomi Anzai)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   Previously, any login user was able to try to execute pgpool_pgctl()<br>
&gt; &gt;&gt;   which could stop/restart/reload a backend node even if he was not a<br>
&gt; &gt;&gt; super<br>
&gt; &gt;&gt;   user. Also pgpool_pgctl() was executed by sr_check_user or<br>
&gt; &gt;&gt; health_check_user,<br>
&gt; &gt;&gt;   but it wasn&#39;t reasonable. This update is that buttons of<br>
&gt; &gt;&gt; stop/restart/reload<br>
&gt; &gt;&gt;   are disabled when the login user isn&#39;t a super user and that<br>
&gt; &gt;&gt; pgpool_pg_ctl()<br>
&gt; &gt;&gt;   is executed by login user instead of sr_check_user or health_check_user<br>
&gt; &gt;&gt;   who don&#39;t have to be non-superuser. Per [pgpool-general: 2338].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; pgpool-general mailing list<br>
&gt; &gt;&gt; <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
&gt; &gt;&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Sincerely yours,<br>
&gt; &gt; Alexandru Cardaniuc<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Sincerely yours,<br>
&gt; Alexandru Cardaniuc<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Sincerely yours,<br>Alexandru Cardaniuc
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely yours,<br>Alexandru Cardaniuc
</div>