]> granicus.if.org Git - postgresql/commit
Fix invalid-parallel-jobs error message
authorStephen Frost <sfrost@snowman.net>
Tue, 10 Jan 2017 04:09:29 +0000 (23:09 -0500)
committerStephen Frost <sfrost@snowman.net>
Tue, 10 Jan 2017 04:09:29 +0000 (23:09 -0500)
commit2ef6fe9cbae9fe7789a35cbc5fa1bbf78c163d42
tree51dd670e2318312ea5462ff5565886811398fbd1
parent8c5722948e831c1862a39da2bb5d793a6f2aabab
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.
src/bin/pg_dump/pg_dump.c