Re: BUG #10347: Can't write password to psql or pg_dump

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: derek_ealy(at)rapid7(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #10347: Can't write password to psql or pg_dump
Date: 2014-05-18 10:15:30
Message-ID: 20140518101530.GA13617@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, May 16, 2014 at 08:34:09PM +0000, derek_ealy(at)rapid7(dot)com wrote:
> When exec'ing a command to pg_dump or psql from Java there is no "normal"
> way to send the password to the psql process.
>
> On Linux systems it works as expected because I write the password to the
> input stream of the process running psql.

Normal way of providing password is either to use PGPASSWORD environment
variable, as shown here:
http://www.postgresql.org/docs/current/interactive/libpq-envars.html
or pgpass file, as shown here:
http://www.postgresql.org/docs/current/interactive/libpq-pgpass.html

depesz

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2014-05-18 10:23:24 Re: BUG #10347: Can't write password to psql or pg_dump
Previous Message Michael Paquier 2014-05-17 04:57:02 Re: BUG #10338: could not read block