| От | Kevin Brannen |
|---|---|
| Тема | Re: psql in Batch mode and passwords? |
| Дата | |
| Msg-id | 3D2AFFBB.6010801@nurseamerica.net обсуждение |
| Ответ на | psql in Batch mode and passwords? ("Michael A. Schulte" <michael.schulte@sun.com>) |
| Список | pgsql-admin |
Michael A. Schulte wrote: > Hi, > > does anyone have an idea how to convince psql > to accept a password that is passed during startup > of psql in the command line? > > I don't want to modify pg_hba.conf so that it > is open for everyone so I have inserted: > > local all trust > host all 129.157.0.0 255.255.0.0 password > > > I look for something like: > psql -h somehost -a dash anonymous/anonym > where there exists a postgres user named "anonymous" > and the password is anonym. Try (assume a sh or ksh shell): PGPASSWORD=anonym psql -h somehost -U anonymous -a dash HTH, Kevin
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера