forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit83dec5a
committed
vacuumdb: don't prompt for passwords over and over
Having the script prompt for passwords over and over was a preexistingproblem when it processed multiple databases or when it processedmultiple analyze stages, but the parallel mode introduced in commita179232 made it worse.Fix the annoyance by keeping a copy of the password used by the firstconnection that requires one. Since users can (currently) only have asingle password, there's no need for more complex arrangements (such asremembering one password per database).Per bug #13741 reported by Eric Brown. Patch authored andcross-reviewed by Haribabu Kommi and Michael Paquier, slightly tweakedby Álvaro Herrera.Discussion:http://www.postgresql.org/message-id/20151027193919.931.54948@wrigleys.postgresql.orgBackpatch to 9.5, where parallel vacuumdb was introduced.1 parentfe702a7 commit83dec5a
File tree
9 files changed
+98
-45
lines changed- src/bin/scripts
9 files changed
+98
-45
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
| 206 | + | |
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
|
Lines changed: 24 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
56 |
| - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
60 |
| - | |
61 |
| - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 |
| |
63 | 66 |
| |
64 |
| - | |
| 67 | + | |
65 | 68 |
| |
66 | 69 |
| |
67 |
| - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 |
| |
69 | 74 |
| |
70 | 75 |
| |
| |||
95 | 100 |
| |
96 | 101 |
| |
97 | 102 |
| |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 | 103 |
| |
102 | 104 |
| |
103 |
| - | |
| 105 | + | |
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
107 | 109 |
| |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 |
| |
109 | 117 |
| |
110 |
| - | |
111 | 118 |
| |
112 | 119 |
| |
113 | 120 |
| |
| 121 | + | |
| 122 | + | |
114 | 123 |
| |
115 | 124 |
| |
116 | 125 |
| |
| |||
148 | 157 |
| |
149 | 158 |
| |
150 | 159 |
| |
151 |
| - | |
| 160 | + | |
152 | 161 |
| |
153 | 162 |
| |
154 | 163 |
| |
155 |
| - | |
156 |
| - | |
| 164 | + | |
| 165 | + | |
157 | 166 |
| |
158 |
| - | |
| 167 | + | |
159 | 168 |
| |
160 | 169 |
| |
161 | 170 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
| 34 | + | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
144 |
| - | |
| 143 | + | |
| 144 | + | |
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
| |||
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
183 |
| - | |
184 |
| - | |
| 183 | + | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
253 |
| - | |
254 |
| - | |
| 253 | + | |
| 254 | + | |
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
143 |
| - | |
| 142 | + | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
184 |
| - | |
185 |
| - | |
| 184 | + | |
| 185 | + | |
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
132 |
| - | |
| 131 | + | |
| 132 | + | |
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
300 |
| - | |
301 |
| - | |
| 300 | + | |
| 301 | + | |
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
| |||
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
375 |
| - | |
376 |
| - | |
| 375 | + | |
| 376 | + | |
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
|
Lines changed: 55 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
| 46 | + | |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| |||
275 | 276 |
| |
276 | 277 |
| |
277 | 278 |
| |
| 279 | + | |
| 280 | + | |
278 | 281 |
| |
279 | 282 |
| |
280 | 283 |
| |
| |||
296 | 299 |
| |
297 | 300 |
| |
298 | 301 |
| |
299 |
| - | |
| 302 | + | |
| 303 | + | |
300 | 304 |
| |
301 | 305 |
| |
302 | 306 |
| |
| |||
305 | 309 |
| |
306 | 310 |
| |
307 | 311 |
| |
308 |
| - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
309 | 316 |
| |
310 | 317 |
| |
311 | 318 |
| |
| |||
323 | 330 |
| |
324 | 331 |
| |
325 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
326 | 337 |
| |
327 | 338 |
| |
328 | 339 |
| |
329 | 340 |
| |
330 | 341 |
| |
331 | 342 |
| |
332 |
| - | |
| 343 | + | |
| 344 | + | |
333 | 345 |
| |
334 |
| - | |
| 346 | + | |
| 347 | + | |
335 | 348 |
| |
336 | 349 |
| |
337 | 350 |
| |
| |||
365 | 378 |
| |
366 | 379 |
| |
367 | 380 |
| |
368 |
| - | |
369 |
| - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
370 | 390 |
| |
371 | 391 |
| |
372 | 392 |
| |
| |||
424 | 444 |
| |
425 | 445 |
| |
426 | 446 |
| |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
427 | 457 |
| |
428 | 458 |
| |
429 |
| - | |
430 |
| - | |
| 459 | + | |
| 460 | + | |
431 | 461 |
| |
432 | 462 |
| |
433 | 463 |
| |
| |||
542 | 572 |
| |
543 | 573 |
| |
544 | 574 |
| |
| 575 | + | |
545 | 576 |
| |
546 | 577 |
| |
547 | 578 |
| |
| 579 | + | |
548 | 580 |
| |
549 | 581 |
| |
550 | 582 |
| |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
551 | 592 |
| |
552 | 593 |
| |
553 | 594 |
| |
| |||
572 | 613 |
| |
573 | 614 |
| |
574 | 615 |
| |
575 |
| - | |
| 616 | + | |
| 617 | + | |
576 | 618 |
| |
577 | 619 |
| |
578 | 620 |
| |
| |||
588 | 630 |
| |
589 | 631 |
| |
590 | 632 |
| |
591 |
| - | |
| 633 | + | |
| 634 | + | |
592 | 635 |
| |
593 | 636 |
| |
594 | 637 |
| |
595 | 638 |
| |
| 639 | + | |
596 | 640 |
| |
597 | 641 |
| |
598 | 642 |
| |
|
0 commit comments
Comments
(0)