Re: specifying a password on the cmd line for db connect

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: specifying a password on the cmd line for db connect
Дата
Msg-id 4B01DA93.3090403@2ndquadrant.com
обсуждение исходный текст
Ответ на specifying a password on the cmd line for db connect  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
Gauthier, Dave wrote:

Hi:

 

Is there a way to require and specify a password at the cmd line for a connect?

You don't want to do that because any user on the system can see the command, and thus the password.  You want to use a .pgpass file instead:

http://www.postgresql.org/docs/8.4/interactive/libpq-pgpass.html

-- 
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com

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

Предыдущее
От: "Gauthier, Dave"
Дата:
Сообщение: specifying a password on the cmd line for db connect
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: specifying a password on the cmd line for db connect