Re: Pass password in scripts?

Поиск
Список
Период
Сортировка
От Jan Danielsson
Тема Re: Pass password in scripts?
Дата
Msg-id 45D3CB1D.6030801@gmail.com
обсуждение исходный текст
Ответ на Re: Pass password in scripts?  ("Neil Aggarwal" <neil@JAMMConsulting.com>)
Список pgsql-novice
Neil Aggarwal wrote:
> When I try that, I get:
>
> /usr/local/pgsql/bin/psql: option `--password' doesn't allow an argument
>
>> Is there a way to do that with psql?
>
>    You mean like:
> $ psql --user=foobar --password=boofar < script.sql

   Silly me -- I read the manual page too fast. --password or -W doesn't
take an argument. It just tells the client that you want to enter a
password. This makes since, since passing a password is bad for security.

   I guess you're stuck using .pgpass, which is a better solution anyway.


--
Kind regards,
Jan Danielsson



Вложения

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