<html><head></head><body><div>Hello,</div><div>I setup a master/slave configuration with postgresql 14, and I would like to send all read queries to the slave and all write statements to master. I enabled load balancing and specified backend_weight equal 0 for the master and 1 for the slave. Now, when clients connect and issue a write statement, they get errors about the postgresql being in read only. So, I think, these statements were sent to the slave machine.</div><div><br></div><div>How should I change the load balancer (or other) parameters in order to solve this problem?</div><div><br></div><div>Thank you very much,</div><div>Giuseppe</div><div><span></span></div></body></html>