Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit657c238

Browse files
committed
Remove -o/--oids from pg_dumpall
This has been forgotten in578b229, which has removed support for WITHOIDS.Discussion:https://postgr.es/m/CALAY4q99FcFCoG6ddke0V-AksGe82L_+bhDWgEfgZBakB840zA@mail.gmail.comAuthor: Surafel Temesgen
1 parentdb6e2b4 commit657c238

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

‎doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,6 @@ PostgreSQL documentation
130130
</listitem>
131131
</varlistentry>
132132

133-
<varlistentry>
134-
<term><option>-o</option></term>
135-
<term><option>--oids</option></term>
136-
<listitem>
137-
<para>
138-
Dump object identifiers (<acronym>OID</acronym>s) as part of the
139-
data for every table. Use this option if your application references
140-
the <acronym>OID</acronym>
141-
columns in some way (e.g., in a foreign key constraint).
142-
Otherwise, this option should not be used.
143-
</para>
144-
</listitem>
145-
</varlistentry>
146-
147133
<varlistentry>
148134
<term><option>-O</option></term>
149135
<term><option>--no-owner</option></term>

‎src/bin/pg_dump/pg_dumpall.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ main(int argc, char *argv[])
107107
{"host",required_argument,NULL,'h'},
108108
{"dbname",required_argument,NULL,'d'},
109109
{"database",required_argument,NULL,'l'},
110-
{"oids",no_argument,NULL,'o'},
111110
{"no-owner",no_argument,NULL,'O'},
112111
{"port",required_argument,NULL,'p'},
113112
{"roles-only",no_argument,NULL,'r'},
@@ -211,7 +210,7 @@ main(int argc, char *argv[])
211210

212211
pgdumpopts=createPQExpBuffer();
213212

214-
while ((c=getopt_long(argc,argv,"acd:E:f:gh:l:oOp:rsS:tU:vwWx",long_options,&optindex))!=-1)
213+
while ((c=getopt_long(argc,argv,"acd:E:f:gh:l:Op:rsS:tU:vwWx",long_options,&optindex))!=-1)
215214
{
216215
switch (c)
217216
{
@@ -252,10 +251,6 @@ main(int argc, char *argv[])
252251
pgdb=pg_strdup(optarg);
253252
break;
254253

255-
case'o':
256-
appendPQExpBufferStr(pgdumpopts," -o");
257-
break;
258-
259254
case'O':
260255
appendPQExpBufferStr(pgdumpopts," -O");
261256
break;
@@ -628,7 +623,6 @@ help(void)
628623
printf(_(" -c, --clean clean (drop) databases before recreating\n"));
629624
printf(_(" -E, --encoding=ENCODING dump the data in encoding ENCODING\n"));
630625
printf(_(" -g, --globals-only dump only global objects, no databases\n"));
631-
printf(_(" -o, --oids include OIDs in dump\n"));
632626
printf(_(" -O, --no-owner skip restoration of object ownership\n"));
633627
printf(_(" -r, --roles-only dump only roles, no databases or tablespaces\n"));
634628
printf(_(" -s, --schema-only dump only the schema, no data\n"));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp