mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Added EXAMPLES section.
This commit is contained in:
parent
94515e3522
commit
57148f657f
@ -1,6 +1,6 @@
|
|||||||
.\" This is -*-nroff-*-
|
.\" This is -*-nroff-*-
|
||||||
.\" XXX standard disclaimer belongs here....
|
.\" 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
|
.TH PG_DUMP UNIX 1/20/96 PostgreSQL PostgreSQL
|
||||||
.SH NAME
|
.SH NAME
|
||||||
pg_dump \(em dumps out a Postgres database into a script file
|
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"
|
.BR "large objects"
|
||||||
pg_dump does not handle large objects. Large objects are ignored and
|
pg_dump does not handle large objects. Large objects are ignored and
|
||||||
must be dealt with manually.
|
must be dealt with manually.
|
||||||
|
.SH EXAMPLES
|
||||||
|
.nf
|
||||||
|
To dump a database:
|
||||||
|
|
||||||
|
pg_dump >db.out
|
||||||
|
|
||||||
|
To reload it:
|
||||||
|
|
||||||
|
psql -e database <db.out
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
copy(l)
|
copy(l)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.\" This is -*-nroff-*-
|
.\" This is -*-nroff-*-
|
||||||
.\" XXX standard disclaimer belongs here....
|
.\" XXX standard disclaimer belongs here....
|
||||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_dumpall.1,v 1.1 1997/01/16 15:28:34 momjian Exp $
|
.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_dumpall.1,v 1.2 1997/01/23 06:01:07 momjian Exp $
|
||||||
.TH pg_dumpall UNIX 1/20/96 PostgreSQL PostgreSQL
|
.TH pg_dumpall UNIX 1/20/96 PostgreSQL PostgreSQL
|
||||||
.SH NAME
|
.SH NAME
|
||||||
pg_dumpall \(em dumps out all Postgres databases into a script file
|
pg_dumpall \(em dumps out all Postgres databases into a script file
|
||||||
@ -11,7 +11,19 @@ pg_dumpall \(em dumps out all Postgres databases into a script file
|
|||||||
.IR "pg_dumpall"
|
.IR "pg_dumpall"
|
||||||
is a utility for dumping out all Postgres databases into one file.
|
is a utility for dumping out all Postgres databases into one file.
|
||||||
It also dumps the pg_user table, which is global to all databases.
|
It also dumps the pg_user table, which is global to all databases.
|
||||||
|
pg_dumpall creates each dumped database before loading.
|
||||||
pg_dumpall takes all pg_dump options, but \fB-f\fR and \fBdbname\fR
|
pg_dumpall takes all pg_dump options, but \fB-f\fR and \fBdbname\fR
|
||||||
should not be used.
|
should not be used.
|
||||||
|
.SH EXAMPLES
|
||||||
|
.nf
|
||||||
|
To dump all databases (you can use pg_dump options):
|
||||||
|
|
||||||
|
pg_dumpall -o >db.out
|
||||||
|
|
||||||
|
To reload into a fresh installation (you can use psql options):
|
||||||
|
|
||||||
|
psql -e template1 <db.out
|
||||||
|
|
||||||
|
.fi
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
pg_dump(1)
|
pg_dump(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user