| From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
|---|---|
| To: | Ricardo Martin Gomez <rimartingomez(at)hotmail(dot)com>, James Keener <jim(at)jimkeener(dot)com>, David Gauthier <davegauthierpg(at)gmail(dot)com> |
| Cc: | "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 15:16:16 |
| Message-ID: | e0fef727-a920-a929-be64-9519eb07ece7@iol.ie |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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.
Details here:
https://www.postgresql.org/docs/10/static/app-psql.html
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Guillaume Lelarge | 2018-04-15 17:09:36 | Re: hardcode password in connect string |
| Previous Message | Michael Paquier | 2018-04-15 12:48:34 | Re: Can a broken Postgresql data directory be reconstructed without losing data? |