Skip to content

Commit 4f29394

Browse files
committed
doc: Avoid too prominent use of "backup" on pg_dump man page
Some users inadvertently rely on pg_dump as their primary backup tool, when better solutions exist. The pg_dump man page is arguably misleading in that it starts with "pg_dump is a utility for backing up a PostgreSQL database." This tones this down a little bit, by replacing most uses of "backup" with "export" and adding a short note that pg_dump is not a general-purpose backup tool. Discussion: https://www.postgresql.org/message-id/flat/70b48475-7706-4268-990d-fd522b038d96%40eisentraut.org
1 parent 73275f0 commit 4f29394

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,20 @@ PostgreSQL documentation
3636
<title>Description</title>
3737

3838
<para>
39-
<application>pg_dump</application> is a utility for backing up a
39+
<application>pg_dump</application> is a utility for exporting a
4040
<productname>PostgreSQL</productname> database. It makes consistent
41-
backups even if the database is being used concurrently.
41+
exports even if the database is being used concurrently.
4242
<application>pg_dump</application> does not block other users
4343
accessing the database (readers or writers).
44+
Note, however, that except in simple cases,
45+
<application>pg_dump</application> is generally not the right choice for
46+
taking regular backups of production databases. See <xref
47+
linkend="backup"/> for further discussion.
4448
</para>
4549

4650
<para>
4751
<application>pg_dump</application> only dumps a single database.
48-
To back up an entire cluster, or to back up global objects that are
52+
To export an entire cluster, or to export global objects that are
4953
common to all databases in a cluster (such as roles and tablespaces),
5054
use <xref linkend="app-pg-dumpall"/>.
5155
</para>
@@ -76,7 +80,7 @@ PostgreSQL documentation
7680
<application>pg_restore</application>,
7781
<application>pg_dump</application> provides a flexible archival and
7882
transfer mechanism. <application>pg_dump</application> can be used to
79-
backup an entire database, then <application>pg_restore</application>
83+
export an entire database, then <application>pg_restore</application>
8084
can be used to examine the archive and/or select which parts of the
8185
database are to be restored. The most flexible output file formats are
8286
the <quote>custom</quote> format (<option>-Fc</option>) and the

doc/src/sgml/ref/pg_restore.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ PostgreSQL documentation
781781
Require that each schema
782782
(<option>-n</option>/<option>--schema</option>) and table
783783
(<option>-t</option>/<option>--table</option>) qualifier match at
784-
least one schema/table in the backup file.
784+
least one schema/table in the file to be restored.
785785
</para>
786786
</listitem>
787787
</varlistentry>

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