aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2013-11-08 15:08:11 -0500
committerRobert Haas <rhaas@postgresql.org>2013-11-08 15:08:11 -0500
commit636b868f17a6d38c0f9e099ea8f389a555403f9e (patch)
treed33307f0f08955f03598af6be85f28d2d45c8e1e /doc/src
parent9b4d52f2095be96ca238ce41f6963ec56376491f (diff)
downloadpostgresql-636b868f17a6d38c0f9e099ea8f389a555403f9e.tar.gz
postgresql-636b868f17a6d38c0f9e099ea8f389a555403f9e.zip
doc: Clarify under what circumstances pg_dump needs superuser access.
Inspired by, but different from, a patch from Ivan Lezhnjov IV
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/backup.sgml9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index ccb76d8af0a..54681a0ba0a 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -47,8 +47,13 @@ pg_dump <replaceable class="parameter">dbname</replaceable> &gt; <replaceable cl
that you can perform this backup procedure from any remote host that has
access to the database. But remember that <application>pg_dump</>
does not operate with special permissions. In particular, it must
- have read access to all tables that you want to back up, so in
- practice you almost always have to run it as a database superuser.
+ have read access to all tables that you want to back up, so in order
+ to back up the entire database you almost always have to run it as a
+ database superuser. (If you do not sufficient privileges to back up the
+ entire database, you can still back up portions of the database to which
+ you do have access using options such as
+ <option>-n <replaceable>schema</replaceable></option>
+ or <option>-t <replaceable>table</replaceable></option>.)
</para>
<para>