Re: PGPASSWORD

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PGPASSWORD
Дата
Msg-id 8230.1109365753@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PGPASSWORD  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: PGPASSWORD  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-bugs
Oliver Jowett <oliver@opencloud.com> writes:
> If you're a shell script calling psql / pg_dump / etc, how do you do this?

That doesn't strike me as a compelling case for inventing "--password-fd".
Such a shell script is going to have a hard time passing a password
securely anyway (you weren't planning to "echo $PW" it somewhere, I trust).
And why should the shell script have its fingers on the password in the
first place?  It has no "need to know", and more chances to leak the
password unintentionally than one likes to think about.

If you really don't want to solve the problem with .pgpass, I'd
recommend letting the invoked program collect the password for itself.
That's exactly why we do the collection on /dev/tty and not stdin.

            regards, tom lane

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: PGPASSWORD
Следующее
От: postgresbugs
Дата:
Сообщение: Re: PGPASSWORD