BUG #2433: Using pg_dump in a .bat : Cannot avoid asking for user Name and Password

Поиск
Список
Период
Сортировка
От Jacques Gollion
Тема BUG #2433: Using pg_dump in a .bat : Cannot avoid asking for user Name and Password
Дата
Msg-id 200605120759.k4C7x6UG005800@wwwmaster.postgresql.org
обсуждение исходный текст
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2433
Logged by:          Jacques Gollion
Email address:      jgollion@sambatechnologies.com
PostgreSQL version: 8.1.3
Operating system:   Windows 2000 SP4 Fr
Description:        Using pg_dump in a .bat : Cannot avoid asking for user
Name and Password
Details:

I am trying to automatically save my database every day using the scheduled
Tasks manager.
 I put pg_dump command in a .bat file containing the following line :
C:\postgres\bin\pg_dump -U im -h localhost  -Z 0 -u  -v -F c -f
F:/backup/dump/backup110506__ano pdb2000

The windows user name is im. There is a database role that is im. In the
directory C:\Documents and Settings\im\Application Data\postgresql there is
a file named pgpass.conf containing the following lines :
localhost:*:*:im:imhe
localhost:5432:*:postgres:imhe

I have checked with sysint/filemon.exe that the file pgpass.conf is read.

In fact I have just to type 'Enter' twice to start dump.

I do not understand what is wrong in my system to avoid typing anything.

Thank you in advance for your help.

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

Предыдущее
От: "Sidney Li"
Дата:
Сообщение: BUG #2435: pg_dump/pg_restore with tar format misses indices and constraints
Следующее
От: "Jacques Gollion"
Дата:
Сообщение: BUG #2434: Using pg_dump in a .bat : Cannot avoid asking for user Name and Password