pg_dumpall: Allow --no-role-passwords and --binary-upgrade together
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 14 Apr 2017 01:23:34 +0000 (21:23 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 14 Apr 2017 01:23:34 +0000 (21:23 -0400)
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.

src/bin/pg_dump/pg_dumpall.c

index d598d100163e705b968517e8c366bfa81b1f9cc5..0bf5b7c666ae9f709b1e31daad6f1a457bb420f8 100644 (file)
@@ -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