1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

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.
This commit is contained in:
Robert Haas
2011-03-18 09:44:44 -04:00
parent 777e8c0015
commit c5eb835bbf
3 changed files with 2 additions and 72 deletions

View File

@@ -468,35 +468,12 @@ main(int argc, char **argv)
aclsSkip = true;
break;
case 'X':
/*
* -X is a deprecated alternative to long options;
* no new -X options are to be added.
*/
if (strcmp(optarg, "disable-dollar-quoting") == 0)
disable_dollar_quoting = 1;
else if (strcmp(optarg, "disable-triggers") == 0)
disable_triggers = 1;
else if (strcmp(optarg, "no-tablespaces") == 0)
outputNoTablespaces = 1;
else if (strcmp(optarg, "use-set-session-authorization") == 0)
use_setsessauth = 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 'Z': /* Compression Level */
compressLevel = atoi(optarg);
break;
case 0:
/* This covers the long options equivalent to -X xxx. */
/* This covers the long options. */
break;
case 2: /* lock-wait-timeout */