forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5d76c80
committed
Fix error handling of vacuumdb when running out of fds
When trying to use a high number of jobs, vacuumdb has only checked fora maximum number of jobs used, causing confusing failures when runningout of file descriptors when the jobs open connections to Postgres.This commit changes the error handling so as we do not check anymore fora maximum number of allowed jobs when parsing the option value withFD_SETSIZE, but check instead if a file descriptor is within thesupported range when opening the connections for the jobs so as this isdetected at the earliest time possible.Also, improve the error message to give a hint about the number of jobsrecommended, using a wording given by the reviewers of the patch.Reported-by: Andres FreundAuthor: Michael PaquierReviewed-by: Andres Freund, Álvaro Herrera, Tom LaneDiscussion:https://postgr.es/m/20190818001858.ho3ev4z57fqhs7a5@alap3.anarazel.deBackpatch-through: 9.51 parent5fc7b1e commit5d76c80
1 file changed
+14
-6
lines changedLines changed: 14 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 | 203 |
| |
210 | 204 |
| |
211 | 205 |
| |
| |||
442 | 436 |
| |
443 | 437 |
| |
444 | 438 |
| |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
445 | 453 |
| |
446 | 454 |
| |
447 | 455 |
| |
|
0 commit comments
Comments
(0)