Re: hardcode password in connect string

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: hardcode password in connect string
Дата
Msg-id CAECtzeWYVqZ2R6MDowR9wx_4emjBYrruKCcbbaSAjTetc5EK2Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: hardcode password in connect string  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
2018-04-15 17:16 GMT+02:00 Raymond O'Donnell <rod@iol.ie>:
On 15/04/18 12:35, Ricardo Martin Gomez wrote:
Hello David,
I think so, the parameter you need in psql command is -w mipassword.

Sorry, this is not correct. -w causes psql *never* to prompt for a password, and -W forces a password prompt. Neither allows the password to be passed as an argument - I don't think that this is possible with psql.


You're right, that's not possible (as an argument). And it is a security *feature*.
 
Details here:

  https://www.postgresql.org/docs/10/static/app-psql.html

Ray.


--
Guillaume.

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: hardcode password in connect string
Следующее
От: Martín Marqués
Дата:
Сообщение: Re: hardcode password in connect string