-
- Downloads
vacuumdb: don't prompt for passwords over and over
Having the script prompt for passwords over and over was a preexisting problem when it processed multiple databases or when it processed multiple analyze stages, but the parallel mode introduced in commit a1792320 made it worse. Fix the annoyance by keeping a copy of the password used by the first connection that requires one. Since users can (currently) only have a single password, there's no need for more complex arrangements (such as remembering one password per database). Per bug #13741 reported by Eric Brown. Patch authored and cross-reviewed by Haribabu Kommi and Michael Paquier, slightly tweaked by Álvaro Herrera. Discussion: http://www.postgresql.org/message-id/20151027193919.931.54948@wrigleys.postgresql.org Backpatch to 9.5, where parallel vacuumdb was introduced.
Showing
- src/bin/scripts/clusterdb.c 1 addition, 1 deletionsrc/bin/scripts/clusterdb.c
- src/bin/scripts/common.c 24 additions, 15 deletionssrc/bin/scripts/common.c
- src/bin/scripts/common.h 2 additions, 2 deletionssrc/bin/scripts/common.h
- src/bin/scripts/createlang.c 4 additions, 4 deletionssrc/bin/scripts/createlang.c
- src/bin/scripts/createuser.c 2 additions, 2 deletionssrc/bin/scripts/createuser.c
- src/bin/scripts/droplang.c 4 additions, 4 deletionssrc/bin/scripts/droplang.c
- src/bin/scripts/dropuser.c 2 additions, 2 deletionssrc/bin/scripts/dropuser.c
- src/bin/scripts/reindexdb.c 4 additions, 4 deletionssrc/bin/scripts/reindexdb.c
- src/bin/scripts/vacuumdb.c 55 additions, 11 deletionssrc/bin/scripts/vacuumdb.c
Loading
Please register or sign in to comment