Other methods for moving a geodatabase in PostgreSQL

You can move individual PostgreSQL databases using the pg_dump command, or use the pg_dumpall command to move all databases on a PostgreSQL instance plus users and permissions.

The pg_dump command can extract the database definition (schema) and data or just the database schema to a Structured Query Language (SQL) script or an archive file. If you extract to an archive file, you can use the pg_restore command to rebuild the database on another PostgreSQL instance. If you extract to a SQL script, run the SQL script on the new server to rebuild the database. The pg_dumpall command can only extract to a SQL script, then restore to another PostgreSQL instance by running the SQL script.

The following are some guidelines for moving PostgreSQL databases with pg_dump or pg_dumpall:

For specific information on how to use pg_dump, pg_dumpall, or pg_restore, consult the PostgreSQL documentation.


8/19/2013