Re: Providing the password to psql from a script

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Providing the password to psql from a script
Дата
Msg-id 20040215095035.GC25040@svana.org
обсуждение исходный текст
Ответ на Re: Providing the password to psql from a script  (Willem Herremans <willem.herremans@belgacom.net>)
Список pgsql-general
On Sun, Feb 15, 2004 at 10:27:07AM +0100, Willem Herremans wrote:
> I am afraid this does not help me very much.
>
> The manpage of psql neither mentions the PGPASS environment variable,
> nor the .pgpass file.

Ok, so they're mentioned in the documentation, one under environment
variables. The other is mentioned in there too, aswell as briefly on the
manpage for pg_dumpall. A quick google should find the details for you.

> I understand that, if the server is configured such that the client can
> authenticate wihout password, that psql does not prompt for a password,
> but it would be a serious limitation for my application that it cannot
> support authenitication by means of password.

You could always redirect the password into stderr, though that's a bit of a
hack. Better just use one of the above supported methods.

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> If the Catholic church can survive the printing press, science fiction
> will certainly weather the advent of bookwarez.
>    http://craphound.com/ebooksneitherenorbooks.txt - Cory Doctorow

Вложения

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Providing the password to psql from a script
Следующее
От: Willem Herremans
Дата:
Сообщение: Re: Providing the password to psql from a script