Fix idle clone check when user <> 'postgres'
If user is not `postgres` and we do not specify `dbname`, connection will be established to dbname=user. Which may fail if there is no such database. We can rely on the fact that DB `postgres` is present: > The postgres database is also created when a database cluster is initialized. -- from the official docs https://www.postgresql.org/docs/current/manage-ag-templatedbs.html.
Showing with 5 additions and 3 deletions