Re: Providing the password to psql from a script
Вложения
В списке pgsql-general по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера