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

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: BUG #10347: Can't write password to psql or pg_dump
Дата
Msg-id 20140518101530.GA13617@depesz.com
обсуждение исходный текст
Ответ на BUG #10347: Can't write password to psql or pg_dump  (derek_ealy@rapid7.com)
Список pgsql-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.
>=20
> 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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: derek_ealy@rapid7.com
Дата:
Сообщение: BUG #10347: Can't write password to psql or pg_dump
Следующее
От: Andres Freund
Дата:
Сообщение: Re: BUG #10347: Can't write password to psql or pg_dump