web_services: use pg_dump in batch mode.

bzr revid: p_christ@hol.gr-20101214163003-tmdtxaxul5n1wybe
This commit is contained in:
P. Christeas 2010-12-14 18:30:03 +02:00
parent 40cf6eac7a
commit 56cdbc05a9
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ class db(netsvc.ExportService):
self._set_pg_psw_env_var()
cmd = ['pg_dump', '--format=c', '--no-owner']
cmd = ['pg_dump', '--format=c', '--no-owner' , '-w']
if tools.config['db_user']:
cmd.append('--username=' + tools.config['db_user'])
if tools.config['db_host']:
@ -222,7 +222,7 @@ class db(netsvc.ExportService):
self._create_empty_database(db_name)
cmd = ['pg_restore', '--no-owner']
cmd = ['pg_restore', '--no-owner', '-w']
if tools.config['db_user']:
cmd.append('--username=' + tools.config['db_user'])
if tools.config['db_host']: