Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8RH7-0001rX-23 for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jul 2021 17:53:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m8RH5-000340-KS for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jul 2021 17:53:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8RH5-00033s-Dl for pgsql-bugs@lists.postgresql.org; Tue, 27 Jul 2021 17:53:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8RH3-0007Ur-GF for pgsql-bugs@lists.postgresql.org; Tue, 27 Jul 2021 17:53:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 16RHrl4h353370; Tue, 27 Jul 2021 13:53:47 -0400 From: Tom Lane To: Valdir Kageyama cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17124: Psql prompting for a password In-reply-to: References: <17124-e67e7d3dd7743acb@postgresql.org> <273975.1627398366@sss.pgh.pa.us> Comments: In-reply-to Valdir Kageyama message dated "Tue, 27 Jul 2021 14:11:39 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <353368.1627408427.1@sss.pgh.pa.us> Date: Tue, 27 Jul 2021 13:53:47 -0400 Message-ID: <353369.1627408427@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk [ please keep the mailing list cc'd ] Valdir Kageyama writes: > Following more information: > psql --version > psql (PostgreSQL) 13.3 > psql -U indra -p 6432 -W -h localhost -d postgres The -W switch says to prompt for a password every time, so that's what it's doing. regards, tom lane