Re: Specifying psql password on command line

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Specifying psql password on command line
Дата
Msg-id 22573.991806811@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Specifying psql password on command line  ("Tauren Mills" <tauren@servlets.net>)
Ответы RE: Specifying psql password on command line  ("Tauren Mills" <tauren@servlets.net>)
Список pgsql-general
"Tauren Mills" <tauren@servlets.net> writes:
> I've read the documentation for the psql commands as well as the createdb
> and dropdb commands.  It looks like there is no way to specify the password
> on the command line.  The password is always provided in the form of a stdin
> prompt.

Quite deliberately ... if passwords were provided on the command line,
then anyone else on your machine could read them off with 'ps'.

            regards, tom lane

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

Предыдущее
От: "jackie"
Дата:
Сообщение: Database Size
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Specifying psql password on command line