mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Remove -o/--oids from pg_dumpall
This has been forgotten in 578b229, which has removed support for WITH OIDS. Discussion: https://postgr.es/m/CALAY4q99FcFCoG6ddke0V-AksGe82L_+bhDWgEfgZBakB840zA@mail.gmail.com Author: Surafel Temesgen
This commit is contained in:
parent
db6e2b4c52
commit
657c2384c6
@ -130,20 +130,6 @@ PostgreSQL documentation
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><option>-o</option></term>
|
|
||||||
<term><option>--oids</option></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Dump object identifiers (<acronym>OID</acronym>s) as part of the
|
|
||||||
data for every table. Use this option if your application references
|
|
||||||
the <acronym>OID</acronym>
|
|
||||||
columns in some way (e.g., in a foreign key constraint).
|
|
||||||
Otherwise, this option should not be used.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>-O</option></term>
|
<term><option>-O</option></term>
|
||||||
<term><option>--no-owner</option></term>
|
<term><option>--no-owner</option></term>
|
||||||
|
@ -107,7 +107,6 @@ main(int argc, char *argv[])
|
|||||||
{"host", required_argument, NULL, 'h'},
|
{"host", required_argument, NULL, 'h'},
|
||||||
{"dbname", required_argument, NULL, 'd'},
|
{"dbname", required_argument, NULL, 'd'},
|
||||||
{"database", required_argument, NULL, 'l'},
|
{"database", required_argument, NULL, 'l'},
|
||||||
{"oids", no_argument, NULL, 'o'},
|
|
||||||
{"no-owner", no_argument, NULL, 'O'},
|
{"no-owner", no_argument, NULL, 'O'},
|
||||||
{"port", required_argument, NULL, 'p'},
|
{"port", required_argument, NULL, 'p'},
|
||||||
{"roles-only", no_argument, NULL, 'r'},
|
{"roles-only", no_argument, NULL, 'r'},
|
||||||
@ -211,7 +210,7 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
pgdumpopts = createPQExpBuffer();
|
pgdumpopts = createPQExpBuffer();
|
||||||
|
|
||||||
while ((c = getopt_long(argc, argv, "acd:E:f:gh:l:oOp:rsS:tU:vwWx", long_options, &optindex)) != -1)
|
while ((c = getopt_long(argc, argv, "acd:E:f:gh:l:Op:rsS:tU:vwWx", long_options, &optindex)) != -1)
|
||||||
{
|
{
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
@ -252,10 +251,6 @@ main(int argc, char *argv[])
|
|||||||
pgdb = pg_strdup(optarg);
|
pgdb = pg_strdup(optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'o':
|
|
||||||
appendPQExpBufferStr(pgdumpopts, " -o");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'O':
|
case 'O':
|
||||||
appendPQExpBufferStr(pgdumpopts, " -O");
|
appendPQExpBufferStr(pgdumpopts, " -O");
|
||||||
break;
|
break;
|
||||||
@ -628,7 +623,6 @@ help(void)
|
|||||||
printf(_(" -c, --clean clean (drop) databases before recreating\n"));
|
printf(_(" -c, --clean clean (drop) databases before recreating\n"));
|
||||||
printf(_(" -E, --encoding=ENCODING dump the data in encoding ENCODING\n"));
|
printf(_(" -E, --encoding=ENCODING dump the data in encoding ENCODING\n"));
|
||||||
printf(_(" -g, --globals-only dump only global objects, no databases\n"));
|
printf(_(" -g, --globals-only dump only global objects, no databases\n"));
|
||||||
printf(_(" -o, --oids include OIDs in dump\n"));
|
|
||||||
printf(_(" -O, --no-owner skip restoration of object ownership\n"));
|
printf(_(" -O, --no-owner skip restoration of object ownership\n"));
|
||||||
printf(_(" -r, --roles-only dump only roles, no databases or tablespaces\n"));
|
printf(_(" -r, --roles-only dump only roles, no databases or tablespaces\n"));
|
||||||
printf(_(" -s, --schema-only dump only the schema, no data\n"));
|
printf(_(" -s, --schema-only dump only the schema, no data\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user