diff --git a/libtisbackup/backup_pgsql.py b/libtisbackup/backup_pgsql.py index 49ab969..d85f627 100644 --- a/libtisbackup/backup_pgsql.py +++ b/libtisbackup/backup_pgsql.py @@ -67,7 +67,7 @@ class backup_pgsql(backup_generic): else: stats['log']= "Successfully backuping processed to the following databases :" stats['status']='List' - cmd = """su - postgres -c 'psql -t -c "SELECT datname FROM pg_database WHERE datistemplate = false;"' 2> /dev/null""" + cmd = """su - postgres -c 'psql -A -t -c "SELECT datname FROM pg_database WHERE datistemplate = false;"' 2> /dev/null""" self.logger.debug('[%s] List databases: %s',self.backup_name,cmd) (error_code,output) = ssh_exec(cmd,ssh=self.ssh) self.logger.debug("[%s] Output of %s :\n%s",self.backup_name,cmd,output)