Refactor postgresql configuration into one swh.postgresql function
This avoids duplicating code and allows to simplify conditional in various places.
Unit tests and minikube testing all happy.
It's simpler to review the mr commit per commit.
Edited by Antoine R. Dumont