def METHOD_NAME(self):
    if not self._configure_auto_host():
        if self._try_run_as_postgres():
            if not self._configure_auto_host():
                logging.error('Can\'t run as postgres')
                self.run_postgres = False
        else:
            logging.error('Can\'t configure auto-host for postgresql')
            self.run_postgres = False