在CentOS上使用pgAdmin恢复数据库,有图形界面和命令行两种方式:
pg_restore
pg_restore -h localhost -U postgres -d 数据库名 /path/to/backup/file
-h
-U
-d
/path/to/backup/file