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

Commitb966b51

Browse files
committed
Provide some proper minimal documentation for the pg_dump(all) --binary-upgrade
option. We don't want to commit to what it does, but hiding it will onlycause confusion.
1 parent45a10b2 commitb966b51

File tree

4 files changed

+30
-16
lines changed

4 files changed

+30
-16
lines changed

‎doc/src/sgml/ref/pg_dump.sgml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.111 2009/02/26 16:02:37 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.112 2009/03/04 11:57:00 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -550,6 +550,18 @@ PostgreSQL documentation
550550
</listitem>
551551
</varlistentry>
552552

553+
<varlistentry>
554+
<term><option>--binary-upgrade</option></term>
555+
<listitem>
556+
<para>
557+
This option is for use by in-place upgrade utilities. Its use
558+
for other purposes is not recommended or supported. The
559+
behavior of the option may change in future releases without
560+
notice.
561+
</para>
562+
</listitem>
563+
</varlistentry>
564+
553565
<varlistentry>
554566
<term><option>--disable-dollar-quoting</></term>
555567
<listitem>
@@ -841,12 +853,6 @@ CREATE DATABASE foo WITH TEMPLATE template0;
841853
that can be loaded into older database versions. To do this, manual
842854
editing of the dump file might be required.
843855
</para>
844-
845-
<para>
846-
<application>pg_dump</application> also supports a
847-
<literal>--binary-upgrade</> option for upgrade utility usage.
848-
</para>
849-
850856
</refsect1>
851857

852858
<refsect1 id="pg-dump-examples">

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.77 2009/02/26 16:02:37 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.78 2009/03/04 11:57:00 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -290,6 +290,18 @@ PostgreSQL documentation
290290
</listitem>
291291
</varlistentry>
292292

293+
<varlistentry>
294+
<term><option>--binary-upgrade</option></term>
295+
<listitem>
296+
<para>
297+
This option is for use by in-place upgrade utilities. Its use
298+
for other purposes is not recommended or supported. The
299+
behavior of the option may change in future releases without
300+
notice.
301+
</para>
302+
</listitem>
303+
</varlistentry>
304+
293305
<varlistentry>
294306
<term><option>--disable-dollar-quoting</></term>
295307
<listitem>
@@ -503,12 +515,6 @@ PostgreSQL documentation
503515
database creation will fail for databases in non-default
504516
locations.
505517
</para>
506-
507-
<para>
508-
<application>pg_dump</application> also supports a
509-
<literal>--binary-upgrade</> option for upgrade utility usage.
510-
</para>
511-
512518
</refsect1>
513519

514520

‎src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.527 2009/02/26 16:02:38 petere Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.528 2009/03/04 11:57:00 petere Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -828,6 +828,7 @@ help(const char *progname)
828828
printf(_(" -t, --table=TABLE dump the named table(s) only\n"));
829829
printf(_(" -T, --exclude-table=TABLE do NOT dump the named table(s)\n"));
830830
printf(_(" -x, --no-privileges do not dump privileges (grant/revoke)\n"));
831+
printf(_(" --binary-upgrade for use by upgrade utilities only\n"));
831832
printf(_(" --disable-dollar-quoting disable dollar quoting, use SQL standard quoting\n"));
832833
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
833834
printf(_(" --no-tablespaces do not dump tablespace assignments\n"));

‎src/bin/pg_dump/pg_dumpall.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
*
9-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.118 2009/02/26 16:02:38 petere Exp $
9+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.119 2009/03/04 11:57:00 petere Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -521,6 +521,7 @@ help(void)
521521
printf(_(" -S, --superuser=NAME superuser user name to use in the dump\n"));
522522
printf(_(" -t, --tablespaces-only dump only tablespaces, no databases or roles\n"));
523523
printf(_(" -x, --no-privileges do not dump privileges (grant/revoke)\n"));
524+
printf(_(" --binary-upgrade for use by upgrade utilities only\n"));
524525
printf(_(" --disable-dollar-quoting disable dollar quoting, use SQL standard quoting\n"));
525526
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
526527
printf(_(" --no-tablespaces do not dump tablespace assignments\n"));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp