Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the latest release of pgpool2 on Ubuntu 8.04 with postgres 8.3.11. Replication is working great, but none of my SELECT queries are being load balanced to my secondary server. These are just standard SELECT queries. They aren't doing anything special that would prevent them from being balanced, as far as I know.

Here are the relevant settings from my pgpool.conf file:

replication_mode = true
load_balance_mode = true
master_slave_mode = false
connection_cache = true
parallel_mode = false

backend_hostname0 = ''
backend_port0 = 5432
backend_weight0 = 1
backend_data_directory0 = '/var/lib/postgresql/8.3/main'
backend_hostname1 = ''
backend_port1 = 5432
backend_weight1 = 1
backend_data_directory1 = '/var/lib/postgresql/8.3/main'

Here's an example of a query from my pgpool.log while I had pgpool running in debug mode:

I'm assuming I've got a misconfiguration somwhere. I'd greatly appreciate any help in tracking it down. Thanks!

share|improve this question

I was experiencing this problem using the latest version of pgpool2 compiled from source. I reverted to the version of pgpool2 present in the Ubuntu 8.04 repos, and load balancing is now working. I assume this must be a bug in the latest release.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.