Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zwz7A-0001jh-6P for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Nov 2015 21:09:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zwz79-0004Qm-Ko for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Nov 2015 21:09:03 +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.84) (envelope-from ) id 1Zwz79-0004QV-1b for pgsql-bugs@postgresql.org; Thu, 12 Nov 2015 21:09:03 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zwz74-0002tL-QU for pgsql-bugs@postgresql.org; Thu, 12 Nov 2015 21:09:00 +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.53.52]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id E00A7401645; Thu, 12 Nov 2015 13:08:52 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 06601800; Thu, 12 Nov 2015 18:08:51 -0300 (CLT) Date: Thu, 12 Nov 2015 18:08:50 -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: <20151112210850.GP614468@alvherre.pgsql> References: <20151102192626.GG6104@alvherre.pgsql> <20151104021618.GP6104@alvherre.pgsql> 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: > OK, so attached is a patch aimed at master and 9.5. I reused the > suggestion of Haribabu to not rely completely on the maintenance > database after testing with a couple of database, some of them using > md5 and others trust. That's just more portable this way, and user > just needs to specify the password once to be done even with vacuumdb > --all. Thanks, pushed a slightly tweaked version. If you can please verify that I didn't break anything, it'd be great. FWIW I think the mode that generated the most connections is -jN --all --analyze-in-stages. For additional annoyance, one sets up the "postgres" database with trust auth and others with md5. All the cases I tried only get a single prompt now. Thanks Eric for reporting the problem and Haribabu and Michael for patching. -- Á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