From: Bruce Momjian Date: Thu, 23 Jan 1997 06:01:07 +0000 (+0000) Subject: Added EXAMPLES section. X-Git-Tag: REL6_1~675 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57148f657fca4136446f20d87c388c55b0ec173f;p=postgresql Added EXAMPLES section. --- diff --git a/src/man/pg_dump.1 b/src/man/pg_dump.1 index 52c2f1ded7..9cefd21ba8 100644 --- a/src/man/pg_dump.1 +++ b/src/man/pg_dump.1 @@ -1,6 +1,6 @@ .\" This is -*-nroff-*- .\" XXX standard disclaimer belongs here.... -.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_dump.1,v 1.5 1997/01/17 18:36:32 momjian Exp $ +.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_dump.1,v 1.6 1997/01/23 06:01:00 momjian Exp $ .TH PG_DUMP UNIX 1/20/96 PostgreSQL PostgreSQL .SH NAME pg_dump \(em dumps out a Postgres database into a script file @@ -112,5 +112,15 @@ the same as above. Partial index predicates are stored as plans) .BR "large objects" pg_dump does not handle large objects. Large objects are ignored and must be dealt with manually. +.SH EXAMPLES +.nf +To dump a database: + + pg_dump >db.out + +To reload it: + + psql -e database db.out + +To reload into a fresh installation (you can use psql options): + + psql -e template1