注意:命令直接在linux运行,不用进入pgsql
一.导出数据库及具体表
1.导出数据库:方式一:pg_dump -U postgres( -h localhost) -f c:\db.sql postgis
方式二:pg_dump -U postgres (-h localhost)
postgis > c:\db.sql
2.导入数据库:方式一:psql -d postgis (-h localh