Fix PostgreSQL hook not using "psql_command" for list when dumping "all"
This commit is contained in:
parent
50b0a9ce38
commit
874fba7672
1 changed files with 2 additions and 1 deletions
|
@ -59,8 +59,9 @@ def database_names_to_dump(database, extra_environment, log_prefix, dry_run):
|
|||
if dry_run:
|
||||
return ()
|
||||
|
||||
psql_command = database.get('psql_command') or 'psql'
|
||||
list_command = (
|
||||
('psql', '--list', '--no-password', '--csv', '--tuples-only')
|
||||
(psql_command, '--list', '--no-password', '--csv', '--tuples-only')
|
||||
+ (('--host', database['hostname']) if 'hostname' in database else ())
|
||||
+ (('--port', str(database['port'])) if 'port' in database else ())
|
||||
+ (('--username', database['username']) if 'username' in database else ())
|
||||
|
|
Loading…
Reference in a new issue