Re: Pass password in scripts?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Pass password in scripts?
Дата
Msg-id 9996.1171503301@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Pass password in scripts?  ("Neil Aggarwal" <neil@JAMMConsulting.com>)
Ответы Re: Pass password in scripts?  ("Neil Aggarwal" <neil@JAMMConsulting.com>)
Список pgsql-novice
"Neil Aggarwal" <neil@JAMMConsulting.com> writes:
> With mysql, I can pass the password to the database in
> the command line call to the terminal client.

Really?  That's an enormous security hole, because anyone running "ps"
on the system can see your password.

> Is there a way to do that with psql?

Consider using a ~/.pgpass file instead.  Much safer.

            regards, tom lane

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

Предыдущее
От: Jan Danielsson
Дата:
Сообщение: Re: Pass password in scripts?
Следующее
От: "Neil Aggarwal"
Дата:
Сообщение: Re: Pass password in scripts?