Re: hardcode password in connect string

Поиск
Список
Период
Сортировка
От David Gauthier
Тема Re: hardcode password in connect string
Дата
Msg-id CAMBRECBBvug_ZZKAEca==S0vMTLgo1X2smkjchO=KpD=A56Rog@mail.gmail.com
обсуждение исходный текст
Ответ на Re: hardcode password in connect string  (James Keener <jim@jimkeener.com>)
Ответы Re: hardcode password in connect string  (Ricardo Martin Gomez <rimartingomez@hotmail.com>)
Список pgsql-general
PGPASSWORD env var works fine.  
Thanks !


On Fri, Apr 13, 2018 at 2:46 PM, James Keener <jim@jimkeener.com> wrote:
Is setting it as an environment variable an option? https://www.postgresql.org/docs/9.1/static/libpq-envars.html

Alternatively, a service file? https://www.postgresql.org/docs/9.0/static/libpq-pgservice.html

Jim


On April 13, 2018 2:43:01 PM EDT, David Gauthier <davegauthierpg@gmail.com> wrote:
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 !

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: hardcode password in connect string
Следующее
От: Ron
Дата:
Сообщение: Re: how to securely delete the storage freed when a table is dropped?