[Pgpool-general] Confused about JDBC and load balancing

2011-07-20 Thread Matt Solnit
Hi everyone. I'm trying to understand why load balancing doesn't work with the PostgreSQL JDBC driver, and what (if anything) can be done about it. I have to admit, I find the documentation a bit confusing. Here is what it currently says at http://pgpool.projects.postgresql.org/pgpool-II/doc/

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-20 Thread Toshihiro Kitagawa
On Wed, 20 Jul 2011 11:58:45 -0400 Matt Solnit wrote: > Hi everyone. I'm trying to understand why load balancing doesn't work with > the PostgreSQL JDBC driver, and what (if anything) can be done about it. I > have to admit, I find the documentation a bit confusing. Here is what it > curren

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-21 Thread David Hartveld
Op 21-07-11 08:16, Toshihiro Kitagawa schreef: On Wed, 20 Jul 2011 11:58:45 -0400 Matt Solnit wrote: Hi everyone. I'm trying to understand why load balancing doesn't work with the PostgreSQL JDBC driver, and what (if anything) can be done about it. I have to admit, I find the documentation

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-21 Thread Guillaume Lelarge
On Thu, 2011-07-21 at 10:41 +0200, David Hartveld wrote: > Op 21-07-11 08:16, Toshihiro Kitagawa schreef: > > On Wed, 20 Jul 2011 11:58:45 -0400 > > Matt Solnit wrote: > > > >> Hi everyone. I'm trying to understand why load balancing doesn't work > >> with the PostgreSQL JDBC driver, and what (i

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-21 Thread Matt Solnit
On Jul 20, 2011, at 11:16 PM, Toshihiro Kitagawa wrote: > On Wed, 20 Jul 2011 11:58:45 -0400 > Matt Solnit wrote: > >> Hi everyone. I'm trying to understand why load balancing doesn't work with >> the PostgreSQL JDBC driver, and what (if anything) can be done about it. I >> have to admit, I

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-21 Thread Matt Solnit
On Jul 21, 2011, at 11:04 PM, Matthew Solnit wrote: > On Jul 20, 2011, at 11:16 PM, Toshihiro Kitagawa wrote: > >> On Wed, 20 Jul 2011 11:58:45 -0400 >> Matt Solnit wrote: >> >>> Hi everyone. I'm trying to understand why load balancing doesn't work with >>> the PostgreSQL JDBC driver, and wha

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-26 Thread Tatsuo Ishii
> Found the problem. It's in the PostgreSQL "valid connection checker" class > provided by JBoss. A typical JBoss data source configuration file for > PostgreSQL > includes the following XML: > > > org.jboss.resource.adapter.jdbc.vendor.PostgreSQLValidConnectionChecker > > The source cod

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-28 Thread Toshihiro Kitagawa
Hi, > The source code for the PostgreSQLValidConnectionChecker class includes the > following validity check: > > try > { > stmt = cn.createStatement(); > stmt.execute(""); > } > // etc.. > > This empty-string query is exactly what's causing the problem

Re: [Pgpool-general] Confused about JDBC and load balancing

2011-07-28 Thread Matt Solnit
On Jul 28, 2011, at 1:39 AM, "Toshihiro Kitagawa" mailto:kitag...@sraoss.co.jp>> wrote: Hi, The source code for the PostgreSQLValidConnectionChecker class includes the following validity check: try { stmt = cn.createStatement(); stmt.execute(""); } // etc..