Re: .pgpass not working

Поиск
Список
Период
Сортировка
От Ben Chobot
Тема Re: .pgpass not working
Дата
Msg-id D6535CDE-F01D-48CF-B066-D359A050701F@silentmedia.com
обсуждение исходный текст
Ответ на .pgpass not working  (Rebecca Clarke <r.clarke83@gmail.com>)
Ответы Re: .pgpass not working  (Rebecca Clarke <r.clarke83@gmail.com>)
Список pgsql-general
On May 4, 2012, at 9:30 AM, Rebecca Clarke wrote:

I do not want to touch the pg_hba.conf so I have generated the .pgpass file.
The permissions is set to 600, and I have correctly inputted the details into .pgpass, there are no leading spaces.

myhostname:myport:*:postgres:mypassword

However I am still prompted for a password.
I have tested pg_dump as well and it prompts also.

Does anyone have any suggestions on what may be the culprit. Is there somewhere I need to specify to tell the system to look into the .pgpass file?

Where is the .pgpass file? If it's not in ~/.pgpass or doesn't have the right ownership (your permissions are good) then it won't be used. If it's in a different location, you might need to make use of the PGPASSFILE environment variable.

If you really get stuck, you can always strace psql or pg_dump and see if it has problems opening your .pgpass file. 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: spanish locale question
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How to know there is any ODBC Driver installed in the Linux redhat 5.7 server? Thanks