~serpent-consulting-services/openobject-server/6.1-928431-SerpentCS

Viewing all changes in revision 3992.

  • 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: