diff options
author | Alvaro Herrera | 2015-11-12 21:05:23 +0000 |
---|---|---|
committer | Alvaro Herrera | 2015-11-12 21:05:23 +0000 |
commit | 83dec5a712af251af15effbf781ddaedc3bf6b3b (patch) | |
tree | 5d16c6f8dc40bd37a086f1d76deffd4ca80b758d /src/backend/utils/adt/numeric.c | |
parent | fe702a7b3f9f2bc5bf6d173166d7d55226af82c8 (diff) |
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
a179232047 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/[email protected]
Backpatch to 9.5, where parallel vacuumdb was introduced.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions