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

Commiteb06e6d

Browse files
committed
Improve description of restoring pg_dumpall backups, per gripe from
Havard Eidnes.
1 parentc4cf7fb commiteb06e6d

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.26 2003/03/24 14:32:50 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.27 2003/08/01 01:01:52 tgl Exp $
33
-->
44
<chapter id="backup">
55
<title>Backup and Restore</title>
@@ -163,16 +163,21 @@ pg_dump -h <replaceable>host1</> <replaceable>dbname</> | psql -h <replaceable>h
163163
up an entire database cluster. For this reason the
164164
<application>pg_dumpall</> program is provided.
165165
<application>pg_dumpall</> backs up each database in a given
166-
cluster and alsomakes sure that the state of global data such as
167-
users and groups is preserved. The call sequence for
166+
cluster, and alsopreserves cluster-wide data such as
167+
users and groups. The call sequence for
168168
<application>pg_dumpall</> is simply
169169
<synopsis>
170170
pg_dumpall &gt; <replaceable>outfile</>
171171
</synopsis>
172-
The resulting dumps can be restored with <application>psql</> as
173-
described above. But in this case it is definitely necessary that
174-
you have database superuser access, as that is required to restore
175-
the user and group information.
172+
The resulting dump can be restored with <application>psql</>:
173+
<synopsis>
174+
psql template1 &lt; <replaceable class="parameter">infile</replaceable>
175+
</synopsis>
176+
(Actually, you can specify any existing database name to start from,
177+
but if you are reloading in an empty cluster then <literal>template1</>
178+
is the only available choice.) It is always necessary to have
179+
database superuser access when restoring a <application>pg_dumpall</>
180+
dump, as that is required to restore the user and group information.
176181
</para>
177182
</sect2>
178183

@@ -260,7 +265,7 @@ pg_dump -Fc <replaceable class="parameter">dbname</replaceable> > <replaceable c
260265
<para>
261266
<application>pg_dump</> (and by implication
262267
<application>pg_dumpall</>) has a few limitations which stem from
263-
the difficultyto reconstruct certain information from the system
268+
the difficultyof reconstructing certain information from the system
264269
catalogs.
265270
</para>
266271

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp