From: Bruce Momjian Date: Fri, 25 Feb 2005 04:56:01 +0000 (+0000) Subject: Please find enclosed a patch, per Dennis Bjrklund, that uses -f X-Git-Tag: REL8_1_0BETA1~1320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93aa22fc8ef30af85cabaa9cebf8bd0f6b0e9e05;p=postgresql Please find enclosed a patch, per Dennis Bjrklund, that uses -f for input files rather than <. This makes error messages, &c. more expressive. David Fetter --- diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index b2309262e4..02d07f6c2f 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1,5 +1,5 @@ Backup and Restore @@ -177,7 +177,7 @@ pg_dumpall > outfile The resulting dump can be restored with psql: -psql template1 < infile +psql -f infile template1 (Actually, you can specify any existing database name to start from, but if you are reloading in an empty cluster then template1 @@ -1210,7 +1210,7 @@ cd ~/postgresql-&version; gmake install initdb -D /usr/local/pgsql/data postmaster -D /usr/local/pgsql/data -psql template1 < backup +psql -f backup template1 See about ways to start and stop the