8000 Fix invalid-parallel-jobs error message · hackingwu/postgres@f126810 · GitHub
[go: up one dir, main page]

Skip to content

Commit f126810

Browse files
committed
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.
1 parent 4d4ab6c commit f126810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ main(int argc, char **argv)
606606
|| numWorkers > MAXIMUM_WAIT_OBJECTS
607607
#endif
608608
)
609-
exit_horribly(NULL, "%s: invalid number of parallel jobs\n", progname);
609+
exit_horribly(NULL, "invalid number of parallel jobs\n");
610610

611611
/* Parallel backup only in the directory archive format so far */
612612
if (archiveFormat != archDirectory && numWorkers > 1)

0 commit comments

Comments
 (0)
0