I've created a postgresql replica database to mirror the content of my production database and want to be sure that queries against the replica can never impact the production server. How safe am I?
Thanks!
I've created a postgresql replica database to mirror the content of my production database and want to be sure that queries against the replica can never impact the production server. How safe am I?
Thanks!
Never say never.
If you implement synchronous replication, and overload the capacity of the replica, production will need to wait for the secondary. The documentation's HA matrix notes this consideration.
Even if not using sync replication, in some cases resource consumption may affect performance. Say you replicate to a secondary on the same SAN. WAL replication plus query I/O may saturate the shared storage bandwidth. Primary isn't going to perform well if its storage is maxed out. Prevent this problem with capacity planning, and not sharing storage or compute systems.