Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esr2T-0002qN-Pb for pgsql-general@arkaria.postgresql.org; Mon, 05 Mar 2018 14:24:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1esr2S-0006l5-JB for pgsql-general@arkaria.postgresql.org; Mon, 05 Mar 2018 14:24:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1esr1J-00010T-OU for pgsql-general@lists.postgresql.org; Mon, 05 Mar 2018 14:23:17 +0000 Received: from eastrmfepo101.cox.net ([68.230.241.213]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1esr1G-0002B3-Gp for pgsql-general@lists.postgresql.org; Mon, 05 Mar 2018 14:23:16 +0000 Received: from eastrmimpo110.cox.net ([68.230.241.223]) by eastrmfepo101.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20180305142312.OOMX11711.eastrmfepo101.cox.net@eastrmimpo110.cox.net> for ; Mon, 5 Mar 2018 09:23:12 -0500 Received: from [192.168.1.10] ([70.171.109.83]) by eastrmimpo110.cox.net with cox id JEPC1x00X1o04Vy01EPCnM; Mon, 05 Mar 2018 09:23:12 -0500 X-Authority-Analysis: v=2.2 cv=KdaiiUQD c=1 sm=1 tr=0 a=uCHdjGDeLqaieW9t8IbZ6A==:117 a=uCHdjGDeLqaieW9t8IbZ6A==:17 a=x7bEGLp0ZPQA:10 a=T11QR6bd6vIA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=epTmVMiNAAAA:8 a=pGLkceISAAAA:8 a=uiPgHFfiejjAqtvBaZYA:9 a=QEXdDO2ut3YA:10 a=oXl2ZWDbJX0A:10 a=axBcYUkDfiEA:10 a=HRr8nQXaDmsA:10 a=Mc4aD0pVGCUA:10 a=X6EOACTtwuYA:10 a=MvudFDELAAAA:8 a=4sEjQhChUPNSFhqgLAoA:9 a=PncUC_zQ3ARPOAbT:21 a=_W_S_7VecoQA:10 a=ndEWmUVY6Yapc0oHF_P4:22 a=cqQYQ-srSXVLoFuVifpk:22 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=ron.l.johnson@cox.net Subject: Re: Requiring pass and database psql shell command To: pgsql-general@lists.postgresql.org References: From: Ron Johnson Message-ID: Date: Mon, 5 Mar 2018 08:23:12 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------B6ADE8CB8E17F86BD004C0E1" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------B6ADE8CB8E17F86BD004C0E1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 > 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 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 > > -- Angular momentum makes the world go 'round. --------------B6ADE8CB8E17F86BD004C0E1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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 for more info on doing what you want.

On March 5, 2018 7:55:46 AM EST, "Łukasz Jarych" <jaryszek@gmail.com> 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?

Best,
Jacek 


--
Angular momentum makes the world go 'round.
--------------B6ADE8CB8E17F86BD004C0E1--