postgresql - Postgres Streaming Replication read query forward -
postgresql - Postgres Streaming Replication read query forward -
i know, in case of synchronous streaming replication slave server can take read queries (hot standby). question: need set-up jdbc connection straight slave, or master automatically forwards read request slave.
i know there pg-pool-ii load balancing. simple situation when have master , slave? need connection master , decide run query himself or forwards slave, or need straight create connection slave (by this, mean using slave's ip in jdbc).
i found nil in docs. feeling no, need specify straight in jdbc connection slave postgres not load balancer. may be....
thanks answers.
you connect normal slave , issue queries. there's no point in shipping queries , results twice (once master, on slave, master client).
oh, can have "hot standby" server in synchronous/async , streaming/wal-shipping files. shipping wal files can mean standby time behind master server, doesn't matter.
postgresql jdbc
Comments
Post a Comment