I know, that in case of synchronous streaming replication Slave server can accept read only queries (hot standby). My question: do I need to set-up JDBC connection directly to Slave, or Master will automatically forward read only request to Slave.
I do know that there is pg-pool-II that do load balancing. But what about simple situation when you have Master and Slave? Do you need only connection to Master and it will decide itself to run query himself or forward it to Slave, or you need directly to make connection to the Slave (by this, I mean using Slave's IP in JDBC).
I found nothing in docs. My feeling is that no, you need to specify directly in JDBC connection to Slave as Postgres is not a load balancer. But may be....
Thanks for answers.