I have three node cluster.
Now, I want to reduce the max_connections
field from 300
to 100
. I have changed the value in both master and replica in postgresql.conf
file. I have restarted my master first than the other replica nodes. everything seems ok in master but replicas are shutting down automatically.
Here is the error: hot standby is not possible because max_connections = 100 is a lower setting than on the master server (its value was 300)
I have found a solution where need to start as hot_standby=off
.
Is there any other solution rather than this?