Fixed an issue where PSQL is not working if the PGUSER env variable is set and service file is used for server connection details. #6180

This commit is contained in:
Nikhil Mohite
2023-04-26 11:14:10 +05:30
committed by GitHub
parent f12d6336cf
commit 60265b306f

View File

@@ -381,7 +381,7 @@ def get_connection_str(psql_utility, db, manager):
db = db.replace('"', '\\"')
db = db.replace("'", "\\'")
database = db if db != '' else 'postgres'
user = underscore_unescape(manager.user) if manager.user else 'postgres'
user = underscore_unescape(manager.user) if manager.user else None
conn_attr = manager.create_connection_string(database, user)
conn_attr_list = list()