<div dir="auto">Thank you! </div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 4, 2018 10:40 PM, &quot;Tatsuo Ishii&quot; &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@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">The file hasn&#39;t been changed since 3.7.2. So you can safely ignore the<br>
warning.<br>
<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_<wbr>en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
<br>
&gt; Hi,<br>
&gt; I succeeded to download and install the new version. However I&#39;m getting<br>
&gt; the next error during installation :<br>
&gt; gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\&quot;/<wbr>PostgreSQL/pgpool-3.7.2/etc\&quot;<br>
&gt; -DHEALTHCHECK_OPTS=0 -I. -I../src/include  -D_GNU_SOURCE -I /usr/include<br>
&gt;  -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations<br>
&gt; -fno-strict-aliasing -c -o query_cache/pool_memqcache.o<br>
&gt; query_cache/pool_memqcache.c<br>
&gt; query_cache/pool_memqcache.c: In function<br>
&gt; ג€˜pool_fetch_from_memory_<wbr>cacheג€™:<br>
&gt; query_cache/pool_memqcache.c:<wbr>4043:25: warning: ג€˜qcacheג€™ may be used<br>
&gt; uninitialized in this function [-Wmaybe-uninitialized]<br>
&gt;    memcpy(&amp;tmplen, qcache+i, sizeof(tmplen));<br>
&gt;                          ^<br>
&gt; query_cache/pool_memqcache.c:<wbr>610:8: note: ג€˜qcacheג€™ was declared here<br>
&gt;   char *qcache;<br>
&gt;         ^<br>
&gt;<br>
&gt; 2018-03-04 15:40 GMT+02:00 Mariel Cherkassky &lt;<a href="mailto:mariel.cherkassky@gmail.com">mariel.cherkassky@gmail.com</a>&gt;:<br>
&gt;<br>
&gt;&gt; I downloaded it, but should I copy those files to the original pool<br>
&gt;&gt; directory(the current pool directory that has the bug) or I should replace<br>
&gt;&gt; it and compile and all over again ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2018-03-04 15:32 GMT+02:00 Mariel Cherkassky &lt;<a href="mailto:mariel.cherkassky@gmail.com">mariel.cherkassky@gmail.com</a>&gt;<br>
&gt;&gt; :<br>
&gt;&gt;<br>
&gt;&gt;&gt; Is the link you specified in the end of your comment is the 3.7.2 version<br>
&gt;&gt;&gt; without the bug ?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2018-03-02 1:10 GMT+02:00 Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>&gt;:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; So you are surely bitten by the bug in 3.7.2.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; In other message you failed to incomporate the patch. Maybe executing<br>
&gt;&gt;&gt;&gt; &quot;make clean&quot; before compiling helps you.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; If you are not familiar with patching, you could obtain whole source<br>
&gt;&gt;&gt;&gt; code from:<br>
&gt;&gt;&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=pgpool2.git;a=shortlog" rel="noreferrer" target="_blank">https://git.postgresql.org/<wbr>gitweb/?p=pgpool2.git;a=<wbr>shortlog</a>;<br>
&gt;&gt;&gt;&gt; h=refs/heads/V3_7_STABLE<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; In this window the top most row is the latest entry for 3.7.x. You hit<br>
&gt;&gt;&gt;&gt; &quot;snapshot&quot; link to get the source code tar ball (.tgz).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Current direct link to the tar ball is:<br>
&gt;&gt;&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=pgpool2.git;a=snapshot" rel="noreferrer" target="_blank">https://git.postgresql.org/<wbr>gitweb/?p=pgpool2.git;a=<wbr>snapshot</a>;<br>
&gt;&gt;&gt;&gt; h=<wbr>8593af680d9c575c23a823489ecfa6<wbr>93749811f3;sf=tgz<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Another workaround is, swapping the entry for node 0 and node 1 in<br>
&gt;&gt;&gt;&gt; your pgpool.conf.<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_<wbr>en.php</a><br>
&gt;&gt;&gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt; pool_version<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; ----------------------<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; 3.7.2 (amefuriboshi)<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; (1 row)<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; psql -d postgres -U postgres -h 127.0.0.1  -p 9999 -c &quot;show<br>
&gt;&gt;&gt;&gt; pool_nodes&quot;;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; node_id |    hostname     | port | status | lb_weight |  role   |<br>
&gt;&gt;&gt;&gt; &gt; select_cnt | load_balance_node | replication_delay<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; ---------+-----------------+--<wbr>----+--------+-----------+----<br>
&gt;&gt;&gt;&gt; -----+------------+-----------<wbr>--------+-------------------<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; 0       | pg1 | 5432 | up     | 0.333333  | standby | 22565      |<br>
&gt;&gt;&gt;&gt; &gt; true              | 0<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; 1       | pg2 | 5432 | up     | 0.333333  | primary | 10416      |<br>
&gt;&gt;&gt;&gt; &gt; false             | 0<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; 2       | pg3 | 5432 | up     | 0.333333  | standby | 7686       |<br>
&gt;&gt;&gt;&gt; &gt; false             | 0<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; (3 rows)<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; 2018-03-01 6:23 GMT+02:00 Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>&gt;:<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; I found a problem that had a big impact on our servers. I&#39;m using<br>
&gt;&gt;&gt;&gt; pgpool<br>
&gt;&gt;&gt;&gt; &gt;&gt; as<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; a load balancer and pool connections manager. When a user tries to<br>
&gt;&gt;&gt;&gt; run a<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; select query it redirects the query to the slave. If the user tries<br>
&gt;&gt;&gt;&gt; after<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; that to run dml or ddl command he get error :<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; ERROR: cannot execute CREATE TABLE in a read-only transaction<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; SQL state: 25006<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; Is there any way to solve this issue ? It means that once the pool<br>
&gt;&gt;&gt;&gt; &gt;&gt; &gt; redirected your session to the slaves you cant run any ddl/dml<br>
&gt;&gt;&gt;&gt; actions ..<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; Normaly Pgpool-II redirects any ddl/dml query to primary.  Can you<br>
&gt;&gt;&gt;&gt; &gt;&gt; show me following query results? I would like to confirm your problem.<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; show pool_version;<br>
&gt;&gt;&gt;&gt; &gt;&gt; show pool_nodes;<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt; Best regards,<br>
&gt;&gt;&gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt;&gt; &gt;&gt; Tatsuo Ishii<br>
&gt;&gt;&gt;&gt; &gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt;&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_<wbr>en.php</a><br>
&gt;&gt;&gt;&gt; &gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
</blockquote></div></div>