diff options
author | Stephen Frost <sfrost@snowman.net> | 2017-01-09 23:09:33 -0500 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2017-01-09 23:09:33 -0500 |
commit | 96f2344f381df94fcb9b84bffc58bbc540edd842 (patch) | |
tree | 5ac8ac3877fd94257da7b2b31ae0365cbe3583ce /src | |
parent | 4e563a1f6532decf7949324d313f264a4ed38622 (diff) |
Fix invalid-parallel-jobs error message
Including the program name twice is not helpful:
-> pg_dump -j -1
pg_dump: pg_dump: invalid number of parallel jobs
Correct by removing the progname from the exit_horribly() call used when
validating the number of parallel jobs.
Noticed while testing various pg_dump error cases.
Back-patch to 9.3 where parallel pg_dump was added.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index c3ca0474639..efb369ff285 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -616,7 +616,7 @@ main(int argc, char **argv) || numWorkers > MAXIMUM_WAIT_OBJECTS #endif ) - exit_horribly(NULL, "%s: invalid number of parallel jobs\n", progname); + exit_horribly(NULL, "invalid number of parallel jobs\n"); /* Parallel backup only in the directory archive format so far */ if (archiveFormat != archDirectory && numWorkers > 1) |