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

Commitdec6643

Browse files
committed
Improve pg_dump/pg_dumpall help synopses and terminology
Increase consistency of --help and man page synopses between pg_dumpand pg_dumpall. These should now be very similar, as pg_dumpall cannow also produce non-text dump output. But actually, they had driftedfurther apart.- Use verb "export" consistently, instead of "dump" or "extract".- Use "SQL script" instead of just "script" or "text file".- Maintain consistent distinction between SQL script and other formats/archives (which is relevant for pg_restore).Reviewed-by: Robert Treat <rob@xzilla.net>Discussion:https://www.postgresql.org/message-id/flat/3f71d8a7-095b-4829-9b0b-fce09e9866b3%40eisentraut.org
1 parent1546e17 commitdec6643

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PostgreSQL documentation
1818
<refname>pg_dump</refname>
1919

2020
<refpurpose>
21-
extract a <productname>PostgreSQL</productname> databaseinto ascriptfileor otherarchive file
21+
export a <productname>PostgreSQL</productname> databaseas an SQLscript ortootherformats
2222
</refpurpose>
2323
</refnamediv>
2424

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ PostgreSQL documentation
1616

1717
<refnamediv>
1818
<refname>pg_dumpall</refname>
19-
<refpurpose>extract a <productname>PostgreSQL</productname> database cluster using a specified dump format</refpurpose>
19+
20+
<refpurpose>
21+
export a <productname>PostgreSQL</productname> database cluster as an SQL script or to other formats
22+
</refpurpose>
2023
</refnamediv>
2124

2225
<refsynopsisdiv>
@@ -33,7 +36,7 @@ PostgreSQL documentation
3336
<para>
3437
<application>pg_dumpall</application> is a utility for writing out
3538
(<quote>dumping</quote>) all <productname>PostgreSQL</productname> databases
36-
of a cluster into an archive. Thearchive contains
39+
of a cluster into anSQL script file or anarchive. Theoutput contains
3740
<acronym>SQL</acronym> commands that can be used as input to <xref
3841
linkend="app-psql"/> to restore the databases. It does this by
3942
calling <xref linkend="app-pgdump"/> for each database in the cluster.

‎doc/src/sgml/ref/pg_restore.sgml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ PostgreSQL documentation
1818
<refname>pg_restore</refname>
1919

2020
<refpurpose>
21-
restorea<productname>PostgreSQL</productname>database or cluster
22-
from an archivecreated by <application>pg_dump</application> or
21+
restore <productname>PostgreSQL</productname>databases from archives
22+
created by <application>pg_dump</application> or
2323
<application>pg_dumpall</application>
2424
</refpurpose>
2525
</refnamediv>

‎src/bin/pg_dump/pg_dump.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ main(int argc, char **argv)
12351235
static void
12361236
help(const char *progname)
12371237
{
1238-
printf(_("%sdumps a database asa text file or to other formats.\n\n"), progname);
1238+
printf(_("%sexports aPostgreSQLdatabase asan SQL script or to other formats.\n\n"), progname);
12391239
printf(_("Usage:\n"));
12401240
printf(_(" %s [OPTION]... [DBNAME]\n"), progname);
12411241

‎src/bin/pg_dump/pg_dumpall.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ main(int argc, char *argv[])
699699
staticvoid
700700
help(void)
701701
{
702-
printf(_("%sextracts a PostgreSQL database clusterbased on specified dump format.\n\n"),progname);
702+
printf(_("%sexports a PostgreSQL database clusteras an SQL script or to other formats.\n\n"),progname);
703703
printf(_("Usage:\n"));
704704
printf(_(" %s [OPTION]...\n"),progname);
705705

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp