<div dir="ltr"><div><div><div><div>Hi Tatsuo,<br></div>I figured out the problem is that I did not have the postgresql.conf set correctly.<br><br>#listen_addresses = &#39;*&#39;<br><br></div>As soon as I set to * and restart both postgresql and pgpool, problem resolve.<br>

<br></div>Thanks<br></div>Ning<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 14, 2013 at 3:22 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; Hi Tatsuo,<br>
&gt; I will try your latest pkg on Monday.<br>
&gt; Meanwhile, I try on my other machine which I cannot reproduce the problem.<br>
&gt; The difference is that, one the working machine, I compile, make, and make<br>
&gt; install pgpool on the system; while on the non working server, I create the<br>
&gt; rpm from a build machine.<br>
&gt; I obtained the spec file from you previously, and I see that your<br>
&gt; ./configure command has the following:<br>
&gt;<br>
&gt; %configure --with-pgsql-includedir=%{_includedir}/pgsql \<br>
&gt;            --with-pgsql-lib=%{_libdir}/pgsql \<br>
&gt;            --disable-static --with-pam --disable-rpath \<br>
&gt;            --sysconfdir=%{_sysconfdir}/%{name}/<br>
&gt;<br>
&gt; While in my build environment, the pgsql include folder and pgsql lib<br>
&gt; folder are not available, do I really need the folder for the ./configure<br>
&gt; command?<br>
<br>
</div>Yes. Building pgpool-II requires PostgreSQL header files and library.<br>
<div class="HOEnZb"><div class="h5">--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
&gt; Thanks~<br>
&gt; Ning<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Apr 13, 2013 at 6:34 PM, Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Souds like a pgpool-II 3.2.1&#39;s connection problem. Can you please try<br>
&gt;&gt; 3.2-stable head?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://git.postgresql.org/gitweb/?p=pgpool2.git;a=shortlog;h=refs/heads/V3_2_STABLE" target="_blank">http://git.postgresql.org/gitweb/?p=pgpool2.git;a=shortlog;h=refs/heads/V3_2_STABLE</a><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" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt; I have a server load with PostgreSQL 9.2.4 and PgPool-II 3.2.1 configure<br>
&gt;&gt; to<br>
&gt;&gt; &gt; RAW mode by renaming pgpool.conf.sample to pgpool.conf and update the<br>
&gt;&gt; &gt; followings:<br>
&gt;&gt; &gt; backend_hostname0<br>
&gt;&gt; &gt; backend_port0<br>
&gt;&gt; &gt; backend_weight0<br>
&gt;&gt; &gt; backend_data_directory0<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; log_destination<br>
&gt;&gt; &gt; sr_check_user<br>
&gt;&gt; &gt; sr_check_password<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; health_check_user<br>
&gt;&gt; &gt; health_check_password<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; PgPool was able to start, however, node info return the server to be in<br>
&gt;&gt; &gt; State 1<br>
&gt;&gt; &gt; [root@se032c-94-30 etc]# /usr/bin/pcp_node_info 10 localhost 9898 pgpool<br>
&gt;&gt; &gt; cisco 0<br>
&gt;&gt; &gt; se032c-94-30 5432 1 1.000000<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; When try query as psql -c &quot;select 1&quot; -U postgres -p 9999, pgpool trigger<br>
&gt;&gt; &gt; the failover.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; In my current configuration, I only have 1 pgpool and 1 database, and<br>
&gt;&gt; both<br>
&gt;&gt; &gt; applications are on the same box.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please kindly let me know if I miss anything.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Attached pgpool.conf for your reference.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks~<br>
&gt;&gt; &gt; Ning<br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div>