pg_dump
pg_dump
Name
pg_dump -- extract a PostgreSQL database into a script file or other archive fileSynopsis
pg_dump [connection-option...] [option...] [dbname]
Description
pg_dump is a utility for backing up a PostgreSQL database. It makes consistent backups even if the database is being used concurrently. pg_dump does not block other users accessing the database (readers or writers).
Dumps can be output in script or archive file formats. Script dumps are plain-text files containing the SQL commands required to reconstruct the database to the state it was in at the time it was saved. To restore from such a script, feed it to 登录查看完整内容