It seems as if pgpool does not pass through bind and execute steps of<br>
prepared statements anymore?<br><br>i does think so, i can tell you from my debug log here :<br><br>2012-08-04 08:21:49 ERROR: pid 8897: Bind: cannot get parse message &quot;&quot;<br>2012-08-04 08:21:49 LOG:   pid 8897: do_child: exits with status 1 due to error<br>
<br>Karsten Düsterloh wrote :<br>We were using pgpool-II 2.3.3 before<br><br>does it work on production environment for Jabber server &quot;openfire&quot;, which is written in Java ?<br>
<br><br><div class="gmail_quote">On Tue, Aug 7, 2012 at 1:31 PM, Karsten Düsterloh <span dir="ltr">&lt;<a href="mailto:pgpool-general-ml@tal.de" target="_blank">pgpool-general-ml@tal.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
I think we experience the same problem.<br>
<div class="im"><br>
Soni Maula Harriz wrote:<br>
&gt; we are using pgpool-II 3.2.0 with replication mode and load balancing<br>
&gt; OS : Centos 6 (Pgpool and postgresql 8.4.9), Ubuntu (Postgresql 8.4.11)<br>
<br>
</div>We&#39;re using pgpool-II 3.2.0 with replication mode and load balancing<br>
under Debian 5 with Postgresql 8.3.16 servers as backends.<br>
(We were using pgpool-II 2.3.3 before.)<br>
<div class="im"><br>
&gt; application using JDBC 4<br>
&gt; we have a problem : the application cannot connect to the database<br>
<br>
</div>We&#39;re using the Jabber server &quot;openfire&quot;, which is written in Java and<br>
indeed using JDBC (and proxool) for its database connection.<br>
<br>
&gt; replication_mode = on<br>
&gt; insert_lock = on<br>
<div class="im">&gt; replicate_select = off<br>
&gt; insert_lock = on<br>
</div><div class="im">&gt; replication_stop_on_mismatch = on<br>
&gt; failover_if_affected_tuples_mismatch = on<br>
&gt; load_balance_mode = on<br>
&gt; ignore_leading_white_space = on<br>
&gt; white_function_list = &#39;&#39;<br>
&gt; black_function_list = &#39;nextval,setval&#39;<br>
&gt; fail_over_on_backend_error = on<br>
<br>
</div>Same here, remainder is usually set to default values.<br>
<br>
We can log into the database using psql with the openfire database<br>
credentials just fine, but openfire can&#39;t.<br>
<br>
I&#39;ve logged two startups of openfire in *postgresql*, one against pgpool<br>
and failing and one against one the postgresql node directly and working.<br>
<br>
Failure via pgpool:<br>
&gt; 2012-08-07 08:08:01.798 CEST [17977] LOG:  connection received: host=xxx port=46636<br>
&gt; 2012-08-07 08:08:01.798 CEST [17978] LOG:  connection received: host=xxx port=46637<br>
&gt; 2012-08-07 08:08:01.798 CEST [17977] LOG:  connection authorized: user=jabber database=jabber<br>
&gt; 2012-08-07 08:08:01.798 CEST [17978] LOG:  connection authorized: user=jabber database=jabber<br>
&gt; 2012-08-07 08:08:01.833 CEST [17978] LOG:  duration: 0.183 ms  parse &lt;unnamed&gt;: SHOW TRANSACTION ISOLATION LEVEL<br>
&gt; 2012-08-07 08:08:01.834 CEST [17978] LOG:  disconnection: session time: 0:00:00.035 user=jabber database=jabber host=xxx port=46637<br>
&gt; 2012-08-07 08:08:01.841 CEST [17977] LOG:  duration: 0.294 ms  parse &lt;unnamed&gt;: SELECT 1<br>
&gt; 2012-08-07 08:08:01.843 CEST [17977] LOG:  disconnection: session time: 0:00:00.045 user=jabber database=jabber host=xxx port=46636<br>
(Plus like 90 more tries of the same structure before openfire gives up.)<br>
<br>
<br>
Working using postgresql directly:<br>
&gt; 2012-08-07 07:56:21.873 CEST [15940] LOG:  connection received: host=yyy port=36270<br>
&gt; 2012-08-07 07:56:21.873 CEST [15941] LOG:  connection received: host=yyy port=36271<br>
&gt; 2012-08-07 07:56:21.876 CEST [15941] LOG:  connection authorized: user=jabber database=jabber<br>
&gt; 2012-08-07 07:56:21.876 CEST [15940] LOG:  connection authorized: user=jabber database=jabber<br>
&gt; 2012-08-07 07:56:21.910 CEST [15940] LOG:  duration: 0.206 ms  parse &lt;unnamed&gt;: SHOW TRANSACTION ISOLATION LEVEL<br>
&gt; 2012-08-07 07:56:21.910 CEST [15940] LOG:  duration: 0.022 ms  bind &lt;unnamed&gt;: SHOW TRANSACTION ISOLATION LEVEL<br>
&gt; 2012-08-07 07:56:21.910 CEST [15940] LOG:  duration: 0.042 ms  execute &lt;unnamed&gt;: SHOW TRANSACTION ISOLATION LEVEL<br>
&gt; 2012-08-07 07:56:21.924 CEST [15940] LOG:  duration: 0.071 ms  parse &lt;unnamed&gt;: SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED<br>
&gt; 2012-08-07 07:56:21.924 CEST [15940] LOG:  duration: 0.007 ms  bind &lt;unnamed&gt;: SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED<br>
&gt; 2012-08-07 07:56:21.924 CEST [15940] LOG:  duration: 0.009 ms  execute &lt;unnamed&gt;: SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED<br>
&gt; 2012-08-07 07:56:21.928 CEST [15941] LOG:  duration: 0.257 ms  parse &lt;unnamed&gt;: SELECT 1<br>
&gt; 2012-08-07 07:56:21.928 CEST [15941] LOG:  duration: 0.052 ms  bind &lt;unnamed&gt;: SELECT 1<br>
&gt; 2012-08-07 07:56:21.928 CEST [15941] LOG:  duration: 0.014 ms  execute &lt;unnamed&gt;: SELECT 1<br>
(etc. until minimum number of parallel connections are open, then normal<br>
proceedings to read Jabber users, and so on.)<br>
<br>
<br>
It seems as if pgpool does not pass through bind and execute steps of<br>
prepared statements anymore?<br>
<br>
<br>
Regards,<br>
<br>
Karsten Düsterloh<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><br><br clear="all"><br>-- <br>Best Regards,<br><br>Soni Maula Harriz<br>Database Administrator<br>PT. Data Aksara Sangkuriang<br><br>