Commit 93aa22fc authored by Bruce Momjian's avatar Bruce Momjian

Please find enclosed a patch, per Dennis Bj<C3><B6>rklund, that uses -f

for input files rather than <.  This makes error messages, &c. more
expressive.

David Fetter
parent 6b80ca2f
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.55 2005/01/22 22:56:35 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.56 2005/02/25 04:56:01 momjian Exp $
--> -->
<chapter id="backup"> <chapter id="backup">
<title>Backup and Restore</title> <title>Backup and Restore</title>
...@@ -177,7 +177,7 @@ pg_dumpall &gt; <replaceable>outfile</> ...@@ -177,7 +177,7 @@ pg_dumpall &gt; <replaceable>outfile</>
</synopsis> </synopsis>
The resulting dump can be restored with <application>psql</>: The resulting dump can be restored with <application>psql</>:
<synopsis> <synopsis>
psql template1 &lt; <replaceable class="parameter">infile</replaceable> psql -f <replaceable class="parameter">infile</replaceable> template1
</synopsis> </synopsis>
(Actually, you can specify any existing database name to start from, (Actually, you can specify any existing database name to start from,
but if you are reloading in an empty cluster then <literal>template1</> but if you are reloading in an empty cluster then <literal>template1</>
...@@ -1210,7 +1210,7 @@ cd ~/postgresql-&version; ...@@ -1210,7 +1210,7 @@ cd ~/postgresql-&version;
gmake install gmake install
initdb -D /usr/local/pgsql/data initdb -D /usr/local/pgsql/data
postmaster -D /usr/local/pgsql/data postmaster -D /usr/local/pgsql/data
psql template1 &lt; backup psql -f backup template1
</programlisting> </programlisting>
See <xref linkend="runtime"> about ways to start and stop the See <xref linkend="runtime"> about ways to start and stop the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment