hardcode password in connect string

Поиск
Список
Период
Сортировка
От David Gauthier
Тема hardcode password in connect string
Дата
Msg-id CAMBRECAUBdTe6fFWynyj6NE2yURNg+sLsra2RL4gh2j5FwZ0Og@mail.gmail.com
обсуждение исходный текст
Ответы Re: hardcode password in connect string  (James Keener <jim@jimkeener.com>)
Список pgsql-general
Hi:

PG v9.5.2 on RHEL

I like to use an alias to connect to my favorite DBs but don't like to enter passwords.  I used to just disable passwords (working behind a firewall), but this one is different.  I see nothing in the interactive connect string where I can enter the password...

psql -h thehost -U memyselfi mydb

Missing something like "-p mypassword"

Is there a way I can stick the pw in the linux alias definition ?

Just thinking something like this may be available since hardcoded passwords are supported in perl/dbi, pg driver

Thanks !

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

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: Gratuitous use of savepoint considered silly, if not harmful
Следующее
От: James Keener
Дата:
Сообщение: Re: hardcode password in connect string