Re: hardcode password in connect string

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: rod(at)iol(dot)ie
Cc: Ricardo Martin Gomez <rimartingomez(at)hotmail(dot)com>, James Keener <jim(at)jimkeener(dot)com>, David Gauthier <davegauthierpg(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: hardcode password in connect string
Date: 2018-04-15 17:09:36
Message-ID: CAECtzeWYVqZ2R6MDowR9wx_4emjBYrruKCcbbaSAjTetc5EK2Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2018-04-15 17:16 GMT+02:00 Raymond O'Donnell <rod(at)iol(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martín Marqués 2018-04-15 20:10:04 Re: hardcode password in connect string
Previous Message Raymond O'Donnell 2018-04-15 15:16:16 Re: hardcode password in connect string