Re: psql prompting for password. Can we suppress it?

Поиск
Список
Период
Сортировка
От Milen A. Radev
Тема Re: psql prompting for password. Can we suppress it?
Дата
Msg-id f8clob$ccp$1@sea.gmane.org
обсуждение исходный текст
Ответ на psql prompting for password. Can we suppress it?  ("Pradeep Rai" <pradeepr@infotechsw.com>)
Список pgsql-bugs
Pradeep Rai написа:
> Hello,
>
> We are trying to perform bulk insert into PostGre database with the help of
> a text file (containing n INSERT statements), and then invoking psql command
> from a batch file.
>
> "psql -d <database name> -f <file-name.sql> -h <server-ip> -U <username>"
>
> The issue is that the psql command window prompts for the password. Have you
> got any idea how to suppress it?

1.http://www.postgresql.org/docs/current/static/libpq-pgpass.html
2.http://www.postgresql.org/docs/current/static/auth-methods.html#AUTH-TRUST



--
Milen A. Radev

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

Предыдущее
От: "Pradeep Rai"
Дата:
Сообщение: psql prompting for password. Can we suppress it?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3493: Cannot find data with = operator