-
+
Backup and Restore
class="parameter">dbname will not be created by this
command, you must create it yourself from template0 before executing
psql> (e.g., with createdb -t template0
- dbname>).
+ class="parameter">dbname>).
psql> supports similar options to pg_dump>
for controlling the database server location and the user names. See
its reference page for more information.
The dumps produced by pg_dump are relative to template0. This means
- that any languages, procedure etc added to template1 will also be
+ that any languages, procedures, etc. added to template1 will also be
dumped by
pg_dump>. As a result, when restoring, if
you are using a customized template1, you must create the empty
database from template0, as in the example above.
For reasons of backward compatibility,
pg_dump> does
not dump large objects by default. To dump large objects you must use
- either custom or TAR output format, and use the -B option in
+ either the custom or the TAR output format, and use the -B option in
pg_dump>. See the reference pages for details.
The directory contrib/pg_dumplo> of the
Postgres> source tree also contains a program that can