aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-02-25 04:56:01 +0000
committerBruce Momjian <bruce@momjian.us>2005-02-25 04:56:01 +0000
commit93aa22fc8ef30af85cabaa9cebf8bd0f6b0e9e05 (patch)
tree43dd7e3e0d507f24537dea8a1ed57abe8bbbe395
parent6b80ca2f06d6c5ba0112d2f8cbcec88d82721167 (diff)
downloadpostgresql-93aa22fc8ef30af85cabaa9cebf8bd0f6b0e9e05.tar.gz
postgresql-93aa22fc8ef30af85cabaa9cebf8bd0f6b0e9e05.zip
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
-rw-r--r--doc/src/sgml/backup.sgml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index b2309262e4a..02d07f6c2f4 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1,5 +1,5 @@
<!--
-$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">
<title>Backup and Restore</title>
@@ -177,7 +177,7 @@ pg_dumpall &gt; <replaceable>outfile</>
</synopsis>
The resulting dump can be restored with <application>psql</>:
<synopsis>
-psql template1 &lt; <replaceable class="parameter">infile</replaceable>
+psql -f <replaceable class="parameter">infile</replaceable> template1
</synopsis>
(Actually, you can specify any existing database name to start from,
but if you are reloading in an empty cluster then <literal>template1</>
@@ -1210,7 +1210,7 @@ cd ~/postgresql-&version;
gmake install
initdb -D /usr/local/pgsql/data
postmaster -D /usr/local/pgsql/data
-psql template1 &lt; backup
+psql -f backup template1
</programlisting>
See <xref linkend="runtime"> about ways to start and stop the