Skip to content

Commit dec6643

Browse files
committed
Improve pg_dump/pg_dumpall help synopses and terminology
Increase consistency of --help and man page synopses between pg_dump and pg_dumpall. These should now be very similar, as pg_dumpall can now also produce non-text dump output. But actually, they had drifted further 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 parent 1546e17 commit dec6643

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> database into a script file or other archive file
21+
export a <productname>PostgreSQL</productname> database as an SQL script or to other formats
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. The archive contains
39+
of a cluster into an SQL script file or an archive. The output 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-
restore a <productname>PostgreSQL</productname> database or cluster
22-
from an archive created 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(_("%s dumps a database as a text file or to other formats.\n\n"), progname);
1238+
printf(_("%s exports a PostgreSQL database as an 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
static void
700700
help(void)
701701
{
702-
printf(_("%s extracts a PostgreSQL database cluster based on specified dump format.\n\n"), progname);
702+
printf(_("%s exports a PostgreSQL database cluster as 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy