Re: Requiring pass and database psql shell command

2018-03-05 Thread David G. Johnston
On Mon, Mar 5, 2018 at 5:55 AM, Łukasz Jarych wrote: > Hi Guys, > > do you have also problem that every time you have to log into your > database using shell and psql? > > I have to write over and over localhost, username, password...how to force > shell to remember this? > >

Re: Requiring pass and database psql shell command

2018-03-05 Thread Ron Johnson
The password file is also a solution. https://www.postgresql.org/docs/current/static/libpq-pgpass.html On 03/05/2018 07:33 AM, James Keener wrote: Well, it's not a problem, it's the way it's designed and it's a sensible design. Check https://www.postgresql.org/docs/9.3/static/libpq-envars.html

Re: Requiring pass and database psql shell command

2018-03-05 Thread Łukasz Jarych
thank you!! Jacek 2018-03-05 14:33 GMT+01:00 James Keener : > Well, it's not a problem, it's the way it's designed and it's a sensible > design. Check https://www.postgresql.org/docs/9.3/static/libpq-envars.html > for more info on doing what you want. > > > On March 5, 2018

Re: Requiring pass and database psql shell command

2018-03-05 Thread James Keener
Well, it's not a problem, it's the way it's designed and it's a sensible design. Check https://www.postgresql.org/docs/9.3/static/libpq-envars.html for more info on doing what you want. On March 5, 2018 7:55:46 AM EST, "Łukasz Jarych" wrote: >Hi Guys, > >do you have also

Requiring pass and database psql shell command

2018-03-05 Thread Łukasz Jarych
Hi Guys, do you have also problem that every time you have to log into your database using shell and psql? I have to write over and over localhost, username, password...how to force shell to remember this? Best, Jacek