–通过cmd进入目录
cd C:\Program Files\PostgreSQL\9.6\bin
–执行导出,localhost 或者IP
pg_dump -h localhost -U postgres ship> C:\ship.bak
–执行导入
psql -h localhost -U postgres -d ship< C:\ship.bak
–通过cmd进入目录
cd C:\Program Files\PostgreSQL\9.6\bin
–执行导出,localhost 或者IP
pg_dump -h localhost -U postgres ship> C:\ship.bak
–执行导入
psql -h localhost -U postgres -d ship< C:\ship.bak