-
Committer:
Olivier Dony
-
Date:
2012-01-31 11:08:49 UTC
-
Revision ID:
odo@openerp.com-20120131110849-tji6ipjovxc9oi4v
[FIX] db dump: report errors due to missing password + pass PGPASSWORD even on Unix
Even on Unix systems the PGPASSWORD env var
is necessary when Postgres is configured to
deny unix socket connections or to require
a password anyway. This avoids asking admins
to manually create a ~/.pgpass file in order
to use the dump/restore tools.
Also did some cleanup to ensure the PGPASSWORD
var is removed from the environment as soon
as the operation is done.