pg_dump and password required

From: Sergey Litvinenko <sergey(at)rsu(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: pg_dump and password required
Date: 2007-10-14 21:05:05
Message-ID: 200710150105.05800.sergey@rsu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello!

I have Postgres configured so it requires password to access DB (in
pg_hba.conf).

The problem is that I want to set up an automated backup with pg_dump, but it
asks for password interactively, rather then accept password from either
command-line option or from some config-file (e.g. ~/.psqlrc)

The workaround would be to disable password requirement, but this is a
security risk I want to avoid.

Why no to add an option --password="" to command-line options of pg_dump?

--
Sincerely,
Sergey Litvinenko
-----------------
sergey(at)rsu(dot)ru
icq#: 34161555
http://www.rsu.ru/~sergey/

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2007-10-15 07:33:31 Re: pg_dump and password required
Previous Message Tom Lane 2007-10-13 20:50:25 Re: BUG #3675: Crash on xpath function with 2 parameters