Likely we will need to set the alternative endpoints parameter when getting the primary endpoint here: https://github.com/canonical/postgresql-operator/blob/7686dd0278adea33e74197b1e4a1105e14b19084/src/charm.py#L390 Since follower units can't update the endpoints and the leader cannot get the state of the cluster locally.