summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-04-14 01:23:34 +0000
committerPeter Eisentraut2017-04-14 01:23:34 +0000
commitff46f2a0534560367ba748ac9d859a2cf05ce3fc (patch)
tree0b0dc4820193cc2a6c8591624ebcfd2ac6c08a06
parent6cfaffc0ddc73dab6857c094f98b28761898cc6d (diff)
pg_dumpall: Allow --no-role-passwords and --binary-upgrade together
This was introduced as part of the patch to add --no-role-passwords, but while it's an unusual combination, there is no actual reason to prevent it.
-rw-r--r--src/bin/pg_dump/pg_dumpall.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c
index d598d10016..0bf5b7c666 100644
--- a/src/bin/pg_dump/pg_dumpall.c
+++ b/src/bin/pg_dump/pg_dumpall.c
@@ -356,15 +356,6 @@ main(int argc, char *argv[])
exit_nicely(1);
}
- if (no_role_passwords && binary_upgrade)
- {
- fprintf(stderr, _("%s: options --no-role-passwords and --binary-upgrade cannot be used together\n"),
- progname);
- fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
- progname);
- exit_nicely(1);
- }
-
/*
* If password values are not required in the dump, switch to
* using pg_roles which is equally useful, just more likely