Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtKlD-0006pS-KT for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Nov 2015 19:27:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZtKlD-000454-2s for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Nov 2015 19:27:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZtKka-0003O7-QP for pgsql-bugs@postgresql.org; Mon, 02 Nov 2015 19:26:40 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZtKkV-0003bD-Ao for pgsql-bugs@postgresql.org; Mon, 02 Nov 2015 19:26:39 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.104.52.149]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 54F2E400411; Mon, 2 Nov 2015 11:26:28 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 70A133847; Mon, 2 Nov 2015 16:26:26 -0300 (CLT) Date: Mon, 2 Nov 2015 16:26:26 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Haribabu Kommi , brown@fastmail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #13741: vacuumdb does not accept valid password Message-ID: <20151102192626.GG6104@alvherre.pgsql> References: <20151027193919.931.54948@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier wrote: > On Mon, Nov 2, 2015 at 8:10 PM, Haribabu Kommi wrote: > > Here I attached modified patch that gets the password from parent connection > > if exists and use it for the child connection also. > > Meh? Why the parent connection? You could simply have the password as > an argument of connectDatabase, per se the attached. That looks just > more simple. Thanks! This is almost there, but there's an important missing piece -- vacuumdb --all will ask you for a password for each database. I think vacuum_one_database needs to receive a password from its caller too. (Also, please use pg_strdup.) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs