AMBARI-6958. If postgres user cannot login, the upgrade fails (dlysnichenko)