aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2017-01-09 23:09:37 -0500
committerStephen Frost <sfrost@snowman.net>2017-01-09 23:09:37 -0500
commit499606c806c387ba2f9a9ee773e6b92d99e27221 (patch)
tree89c1bb9458c45f4927a213956ac12bd7ce34e11b /src
parente4380e4cf68a647d87f0e6207b513d49e802b45c (diff)
downloadpostgresql-499606c806c387ba2f9a9ee773e6b92d99e27221.tar.gz
postgresql-499606c806c387ba2f9a9ee773e6b92d99e27221.zip
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.c2
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 7fa2d5e1d4b..a8bb7b07e1d 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -631,7 +631,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)