PostgreSQL 备份表结构和数据
pg_dump -U your_username -h your_host -p your_port -F c -b -v -f mydb_full.dump mydb
pg_restore -U your_username -d newdb -v mydb_full.dump

pg_dump -U your_username -h your_host -p your_port -F c -b -v -f mydb_full.dump mydb
pg_restore -U your_username -d newdb -v mydb_full.dump
