Re: The .pgpass file
От | Alvaro Herrera |
---|---|
Тема | Re: The .pgpass file |
Дата | |
Msg-id | 20071107184150.GC21788@alvh.no-ip.org обсуждение исходный текст |
Ответ на | The .pgpass file (Tommy Flewwelling <tommyflewwelling@hotmail.com>) |
Список | pgsql-general |
Tommy Flewwelling wrote: > > Hello, > > How do I specify in the command-line to access the .pgpass file when > creating a database? You don't. If the file exists and has the correct permission, createdb will read it. If the needed password is found, the connection will be done without ever prompting the user. FWIW the -W switch is useless. If createdb finds that the password is needed, it will prompt the user even if -W is not specified. If createdb finds that the password is not needed, then it won't prompt the user. (Note that none of this is actually createdb's feature. It is all done by libpq internally.) -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-general по дате отправления: