Re: hardcode password in connect string - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: hardcode password in connect string
Date
Msg-id e0fef727-a920-a929-be64-9519eb07ece7@iol.ie
Whole thread Raw
In response to Re: hardcode password in connect string  (Ricardo Martin Gomez <rimartingomez@hotmail.com>)
Responses Re: hardcode password in connect string  (Guillaume Lelarge <guillaume@lelarge.info>)
Re: hardcode password in connect string  (Martín Marqués <martin@2ndquadrant.com>)
List 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@iol.ie


pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Can a broken Postgresql data directory be reconstructed withoutlosing data?
Next
From: Guillaume Lelarge
Date:
Subject: Re: hardcode password in connect string