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
Discussion: https://www.postgresql.org/message-id/flat/
3f71d8a7-095b-4829-9b0b-
fce09e9866b3%40eisentraut.org
pg_dump
- ex
tract a PostgreSQL database into a script file or other archive file
+ ex
port a PostgreSQL database as an SQL script or to other formats
pg_dumpall
-
extract a PostgreSQL database cluster using a specified dump format
+
+
+ export a
PostgreSQL database cluster as an SQL script or to other formats
+
pg_dumpall is a utility for writing out
(
dumping
) all
PostgreSQL databases
- of a cluster into an archive. The archive contains
+ of a cluster into an SQL script file or an archive. The output contains
SQL commands that can be used as input to
linkend="app-psql"/> to restore the databases. It does this by
calling for each database in the cluster.
pg_restore
- restore
a PostgreSQL database or cluster
-
from an archive created by
pg_dump or
+ restore
PostgreSQL databases from archives
static void
help(const char *progname)
{
- printf(_("%s dumps a database as a text file or to other formats.\n\n"), progname);
+ printf(_("%s exports a PostgreSQL database as an SQL script or to other formats.\n\n"), progname);
printf(_("Usage:\n"));
printf(_(" %s [OPTION]... [DBNAME]\n"), progname);
static void
help(void)
{
- printf(_("%s extracts a PostgreSQL database cluster based on specified dump format.\n\n"), progname);
+ printf(_("%s exports a PostgreSQL database cluster as an SQL script or to other formats.\n\n"), progname);
printf(_("Usage:\n"));
printf(_(" %s [OPTION]...\n"), progname);