How to automate password requests?

Поиск
Список
Период
Сортировка
От Marten Lehmann
Тема How to automate password requests?
Дата
Msg-id 474DB55E.8080507@cnm.de
обсуждение исходный текст
Ответы Re: How to automate password requests?
Re: How to automate password requests?
Список pgsql-general
Hello,

I'm trying to automate some postgresql scripts, but I cannot find a way
to pass a password directly to commands like pg_dump psql and so on.
Even a

echo "password" | psql

doesn't work, the password prompt of psql is still waiting.

mysql has the -p option. What would be the postgresql equivalent? I
don't want to enter passwords dozend times.

Regards
Marten

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

Предыдущее
От: "Trevor Talbot"
Дата:
Сообщение: Re: Linux v.s. Mac OS-X Performance
Следующее
От: "Trevor Talbot"
Дата:
Сообщение: Re: Linux v.s. Mac OS-X Performance