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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -