Skip to content

Commit 93aa22f

Browse files
committed
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
1 parent 6b80ca2 commit 93aa22f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/backup.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.55 2005/01/22 22:56:35 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.56 2005/02/25 04:56:01 momjian Exp $
33
-->
44
<chapter id="backup">
55
<title>Backup and Restore</title>
@@ -177,7 +177,7 @@ pg_dumpall &gt; <replaceable>outfile</>
177177
</synopsis>
178178
The resulting dump can be restored with <application>psql</>:
179179
<synopsis>
180-
psql template1 &lt; <replaceable class="parameter">infile</replaceable>
180+
psql -f <replaceable class="parameter">infile</replaceable> template1
181181
</synopsis>
182182
(Actually, you can specify any existing database name to start from,
183183
but if you are reloading in an empty cluster then <literal>template1</>
@@ -1210,7 +1210,7 @@ cd ~/postgresql-&version;
12101210
gmake install
12111211
initdb -D /usr/local/pgsql/data
12121212
postmaster -D /usr/local/pgsql/data
1213-
psql template1 &lt; backup
1213+
psql -f backup template1
12141214
</programlisting>
12151215

12161216
See <xref linkend="runtime"> about ways to start and stop the

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