<div dir="ltr">I want to configure pgpool only as &quot;load balancer&quot; for the SQL queries.<div>This is my scenario:</div><div>- one application server with tomcat. For each server, there is a single user that makes the queries. The user is for example &quot;userApplication&quot;. I want to use the application connection pooling (c3p0). </div><div>- a single node with pgpool installed configured to send R/W queries to the master and R only queries to the slaves.</div><div>- a postgresql-cluster (postgresql-10) with one master node and one slave.</div><div><br></div><div>I&#39;ve used the default configuration for pgpool (pgpool.conf.sample) changing only:</div><div><b>listen_addresses</b></div><div><b>port</b></div><div><b>backend_hostnameX<br></b></div><div><b>backend_portX</b></div><div><b>connection_cache = off</b><br></div><div><br></div><div>So, in my understanding, setting connection_cache to off will disable the connection pooling. But there are too many idle connections on postgres opened by pgpool, so it seems that pgpool still open num_init_children.</div><div>Moreover, if I correctly understand connections with the same user name, database, protocol version go to the same child process, so in my case, I&#39;m using only one of the child process and the others aren&#39;t used.</div><div><br></div><div>Is there a way to use pgPool to load balancing sql queries from the same user to a different child process?</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Enzo Veltri</div></div>