Re: BUG #13741: vacuumdb does not accept valid password
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>, brown@fastmail.com,
"pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Date: 2015-11-12T21:08:50Z
Lists: pgsql-bugs, pgsql-hackers
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
Commits
-
vacuumdb: don't prompt for passwords over and over
- 83dec5a712af 9.6.0 landed
- 5094da99b901 9.5.0 landed