diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-03-18 09:44:44 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-03-18 09:44:44 -0400 |
commit | c5eb835bbffb99518405a1e5bccb58c85e0ab30e (patch) | |
tree | 28434e138d651f8699faa1624321029da566b3e0 /src/bin/pg_dump/pg_restore.c | |
parent | 777e8c0015743224cc46f3ce39243b05c6d882ef (diff) |
Remove ancient -X options to pg_dump, pg_dumpall, pg_restore.
The last version in which these options were documented is now EOL, so
it's time to get rid of them for real. We now use GNU-style long
options instead.
Diffstat (limited to 'src/bin/pg_dump/pg_restore.c')
-rw-r--r-- | src/bin/pg_dump/pg_restore.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index 37793ad18fc..f1440e2ace9 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -254,28 +254,6 @@ main(int argc, char **argv) opts->aclsSkip = 1; break; - case 'X': - /* -X is a deprecated alternative to long options */ - if (strcmp(optarg, "disable-triggers") == 0) - disable_triggers = 1; - else if (strcmp(optarg, "no-data-for-failed-tables") == 0) - no_data_for_failed_tables = 1; - else if (strcmp(optarg, "no-tablespaces") == 0) - outputNoTablespaces = 1; - else if (strcmp(optarg, "use-set-session-authorization") == 0) - use_setsessauth = 1; - else if (strcmp(optarg, "no-security-label") == 0) - skip_seclabel = 1; - else - { - fprintf(stderr, - _("%s: invalid -X option -- %s\n"), - progname, optarg); - fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname); - exit(1); - } - break; - case '1': /* Restore data in a single transaction */ opts->single_txn = true; opts->exit_on_error = true; @@ -284,8 +262,7 @@ main(int argc, char **argv) case 0: /* - * This covers the long options without a short equivalent, - * including those equivalent to -X xxx. + * This covers the long options without a short equivalent. */ break; |