Re: psql password prompt

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: psql password prompt
Дата
Msg-id A585DB36-0F19-11D9-838D-000A95B03262@icx.net
обсуждение исходный текст
Ответ на psql password prompt  (Dmitri Priimak <priimak@stanford.edu>)
Список pgsql-general
On Sep 25, 2004, at 12:48 PM, Dmitri Priimak wrote:

> There is one thing which somewhat annoys me, which is that psql always
> prompts me for a password.
> That makes it difficult for use in Makefile where I want to say 'make
> build_db', which would run psql for
> each stored procedure which needs to be updated. Is there a way to
> specify that password somehow in a
> command line like isql ( sybase cli client ) does?

You should be able to leave out the password altogether if you setup a
.pgpass file in your home directory.

http://www.postgresql.org/docs/current/interactive/libpq-pgpass.html


Best,

John DeSoi, Ph.D.


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

Предыдущее
От: Peter Wullinger
Дата:
Сообщение: Re: psql password prompt
Следующее
От: "TroyGeek"
Дата:
Сообщение: SMgrRelation hashtable corrupted