From: hubert depesz lubaczewski <depesz@depesz.com>
To: derek_ealy@rapid7.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10347: Can't write password to psql or pg_dump
Date: Sun, 18 May 2014 12:15:30 +0200
Message-ID: <20140518101530.GA13617@depesz.com> (raw)
In-Reply-To: <20140516203409.16847.6130@wrigleys.postgresql.org>
References: <20140516203409.16847.6130@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Fri, May 16, 2014 at 08:34:09PM +0000, derek_ealy@rapid7.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
Attachments:
signature.asc (application/pgp-signature, 800B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: depesz@depesz.com, derek_ealy@rapid7.com
Subject: Re: BUG #10347: Can't write password to psql or pg_dump
In-Reply-To: <20140518101530.GA13617@depesz.com>
References: <20140516203409.16847.6130@wrigleys.postgresql.org> <20140518101530.GA13617@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox